Link to home
Start Free TrialLog in
Avatar of matthew016
matthew016Flag for Belgium

asked on

Menu

Hello there,

I need an advice on the design of my program for school,
when the user open the window, a JTabbedPane appear.

If the user click on one of those tabs, he can see a JTable
and I would like to add a menu that let him do several things with the data in the Jtable
for example, add a row, edit a line, etc.

I tried to add buttons in a JPanel on the right of the JTable (so by default with a FlowLayout) , but the problem is that the buttons don't have all the same size, so I tried with a BorderLayout but then they getting bigger ...

maybe buttons wasn't a good idea,
(I would like to see directly all the options available,
so for example a JComboBox won't do it)

Has anyone an advice for me ?
Thank you.
Avatar of matthew016
matthew016
Flag of Belgium image

ASKER

I tried a JToolBar on the left, it's looks good but i can't let the buttons have the same size and make a vetical alignment
SOLUTION
Avatar of Naeemg
Naeemg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi there, I finally used a JToolBar with a GridLayout, looks good
Thanks u both