aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes What is this component and how to create one. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What is this component and how to create one." Watch "What is this component and how to create one." New topic
Author

What is this component and how to create one.

Pratham Jain
Greenhorn

Joined: Jun 20, 2013
Posts: 3
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]


[1b.jpg]


[Thumbnail for 1c.jpg]

Ramesh Pramuditha Rathnayake
Ranch Hand

Joined: Oct 31, 2012
Posts: 175
    
    1

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.


Ramesh-X
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What is this component and how to create one.