This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is this component and how to create one.

 
Pratham Jain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am very new to java swing and am trying to understand the components.

1. It looks like a Combo-box.
2. Text field is not editable
3. Initially looks like the one in attached image 1a
4. One pointing the mouse on the down arrow on the component, it looks like 1b
5. On clicking the down arrow, open up a new frame

Need your help to understand what is this object and how to create it.
1a.jpg
[Thumbnail for 1a.jpg]
First
1b.jpg
[Thumbnail for 1b.jpg]
Second
1c.jpg
[Thumbnail for 1c.jpg]
Third
 
Ramesh Pramuditha Rathnayake
Ranch Hand
Posts: 178
2
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might be new component created by implementing JComboBox.

If we click on the arrow in JComboBox, a Popup Menu will show. Inside the popup menu there is a JList. You have to change that JList to a JPanel to make a such component.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic