This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes custom jcombobox editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "custom jcombobox editor" Watch "custom jcombobox editor" New topic
Author

custom jcombobox editor

antonio espinosa
Ranch Hand

Joined: Jul 30, 2012
Posts: 30

hello code ranchers.

i got stuck at adding a button to a jcombobox editor i succeded to add a button but i got some issues



when i first enter to the editor an action perform event gets fire wich is unaceptable and the other is i can't get the text typed



this is the problem , if i return panel.jtexfield i only get a text field without a button so whats the trick here?

here is my code



i also wish to set the text font and size to the same as the setted up at the jcombobox
antonio espinosa
Ranch Hand

Joined: Jul 30, 2012
Posts: 30

here it is my implementation enjoy =)


http://i.stack.imgur.com/59FY7.jpg

 
 
subject: custom jcombobox editor
 
Similar Threads
Tool tip and JComboBox
Need help creating custom ComboBoxEditor
Arrow navigation not working on JComboBox with null element
setBackgroundColor
Checked JComboBox