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.