simple21
asked on
JToolBar Question ?
There are several kinds of Toolbars :
1. A Toolbar which has set of buttons which the buttons shows the square borders
like :
JToolBar x = new JToolBar();
JButton b1 = new JButton();
JButton b2 = new JButton();
x.setFloatable(false);
x.setLayout(new GridLayout(1,2));
x.add(b1); x.add(b2);
2. Another version of a JToolBar is a Toolbar which has a set of tools but doesnt shows
the square borders like JButtons, here is a sample :
http://www.jext.org/index.php?section=gallery&category=2
How do I make a JToolBar like the one on the link ?
1. A Toolbar which has set of buttons which the buttons shows the square borders
like :
JToolBar x = new JToolBar();
JButton b1 = new JButton();
JButton b2 = new JButton();
x.setFloatable(false);
x.setLayout(new GridLayout(1,2));
x.add(b1); x.add(b2);
2. Another version of a JToolBar is a Toolbar which has a set of tools but doesnt shows
the square borders like JButtons, here is a sample :
http://www.jext.org/index.php?section=gallery&category=2
How do I make a JToolBar like the one on the link ?
ASKER
>> b1.setBorderPainted(false)
I've already tried this before but it only shows the square border when you click it.
What I wanna do is like the Toolbar of the IE6 on Windows XP. It only shows
the square border when you put your mouse pointer at the top of the button
it's like a mouse over w/o having you to click.
I've already tried this before but it only shows the square border when you click it.
What I wanna do is like the Toolbar of the IE6 on Windows XP. It only shows
the square border when you put your mouse pointer at the top of the button
it's like a mouse over w/o having you to click.
Try adding a mouse listener to the buttons. In the mouseEntered() method, do b1.setBorderPainted(true), and in mouseExited method, do b1.setBorderPainted(false) ;
Can you try to give me a sample pls !
I'm also trying to do the samething w/ my Java IDE.
As what simple21 said I Probobly like to do that to. Anyways this is
not my question so I'm gonna add a question w/ points if you can
answer it, thanks.
Friend : Javatm
As what simple21 said I Probobly like to do that to. Anyways this is
not my question so I'm gonna add a question w/ points if you can
answer it, thanks.
Friend : Javatm
ASKER
>> I'm also trying to do the samething w/ my Java IDE
Fairly advance stuff !. What a imaginative mind. I wish
I could be like you guys, mwah :0
Yongsing :
Pls. give me a sample cause I dont know how to do that, I'm
knew at programming so pls. bare w/ me.
Fairly advance stuff !. What a imaginative mind. I wish
I could be like you guys, mwah :0
Yongsing :
Pls. give me a sample cause I dont know how to do that, I'm
knew at programming so pls. bare w/ me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you mwah :0
Javatm:
Where are the points you promised to give me. :-)
Where are the points you promised to give me. :-)
Javatm:
I just realized that you have posted a question with points for me. Thanks!
I just realized that you have posted a question with points for me. Thanks!
b1.setBorderPainted(false)