Win a copy of Functional Reactive Programming this week in the Other Languages 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it has something to do with Choosing stuff.. But unsure
ChooseButton.png
[Thumbnail for ChooseButton.png]
Choose stuff
 
Maneesh Godbole
Saloon Keeper
Posts: 11185
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 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
  • 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: 4481
3
Java Python Scala
  • 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