Results 1 to 3 of 3
- 03-06-2009, 03:06 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 3
- Rep Power
- 0
How to remove border in JComboBox
Hi i got a JComboBox with a border I need to remove.
I tried:
JConboBox combo = new JComboBox();
combo .setBorder(BorderFactory.createEmptyBorder());
and
combo .setBorder(null);
But that didn't work. Any idea?
I want to remove exactly the border around the JConboBox.
- 03-07-2009, 10:09 AM #2
If the appearance of the arrow button isn't an issue, the one-liner to achieve this is
dbJava Code:comboBox.setUI(new BasicComboBoxUI());
- 03-08-2009, 05:45 PM #3
Member
- Join Date
- Mar 2009
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Textfield border problem
By jurka in forum AWT / SwingReplies: 2Last Post: 08-31-2008, 09:15 AM -
JComboBox
By Fosters in forum AWT / SwingReplies: 0Last Post: 08-10-2008, 01:22 PM -
Displaying a Button with a Border
By Java Tip in forum javax.swingReplies: 0Last Post: 06-26-2008, 07:40 PM -
Border Layout
By mark-mlt in forum Java AppletsReplies: 5Last Post: 05-12-2008, 09:48 AM -
jcombobox
By Freddie in forum AWT / SwingReplies: 4Last Post: 05-11-2007, 12:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks