File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What Component is this called in terms of Java Swing?

 
Jacky Luk
Ranch Hand
Posts: 634
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it has something to do with Choosing stuff.. But unsure
ChooseButton.png
Choose stuff
[Thumbnail for ChooseButton.png]
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jacky Luk
Ranch Hand
Posts: 634
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4353
2
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are probably looking for a JComboBox
check the tutorial to see how to use one
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic