This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes What Component is this called in terms of Java Swing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What Component is this called in terms of Java Swing?" Watch "What Component is this called in terms of Java Swing?" New topic
Author

What Component is this called in terms of Java Swing?

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
it has something to do with Choosing stuff.. But unsure



[Thumbnail for ChooseButton.png]

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

There is no specific component for "choosing stuff"
However you can easily create your own by using a JButton and providing the correct icon to it.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
Maneesh Godbole wrote:There is no specific component for "choosing stuff"
However you can easily create your own by using a JButton and providing the correct icon to it.


If I create one for myself, I wonder how can I pass the database and setting the JLabels and JTextFields on the specialized components
And also how do I override the type of JTextField to ObservingTextField(my own textfield type) if I do that in the GUI builder?
Thanks in advance
Jack
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

you are probably looking for a JComboBox
check the tutorial to see how to use one


SCJP
Visit my download page
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What Component is this called in terms of Java Swing?