Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2006

Tip: Looking for answers? Try searching our database.

Create TextBox In Java File

Thread view: 
amir@programmer.net - 21 Feb 2006 14:27 GMT
Hi all,

I'm new to java ,, my question is that , how can i design a frame by
putting text entry and label controls in a java file (not jsp).

I want to make these controls and put data which is in variables.

Plz advise some solution.

Thanx.
IchBin - 21 Feb 2006 15:10 GMT
> Hi all,
>
[quoted text clipped - 6 lines]
>
> Thanx.

Sorry but you question is hard to understand what you want to do.. Do
you meant to say :

I want to create a JFrame and Add add a  JLabel and JTextField. Once I
add them how do I put data into the JTextField from a java variable?

If this is the general question then you can look at the Java examples
in "The Java Developers Almanac 1.4" at http://javaalmanac.com.

Just enter the object type in the search field and search. Example, for
a JTextField it points me to this link:
http://javaalmanac.com/egs/javax.swing.text/tf_TextField.html

which is: e979. Creating a JTextField Component

Also Look at: " The Really Big Index,
A list of all content pages in the The JavaTM Tutorial "
at http://java.sun.com/docs/books/tutorial/reallybigindex.html

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

Roedy Green - 23 Feb 2006 15:05 GMT
>I'm new to java ,, my question is that , how can i design a frame by
>putting text entry and label controls in a java file (not jsp).

see the sample code snippets at http://mindprod.com/jgloss/jframe.html
http://mindprod.com/jgloss/jtextfield.html

for other widgets you may need see
http://mindprod.com/jgloss/swing.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.