how to get second line in jmenubar

hi together,i'm new to swing and programmed a small frame .now i need 2 jformatted textfields and i want to put them into menubar, but there are already 2 jcomboboxes which i need so there is not enaugh room for allcan someone help
[267 byte] By [nobbynobbesa] at [2007-11-26 21:27:36]
# 1
I'm not quite sure I understand. Have You tried to increase frame size?BTW I've never used JTextFields or JComboBoxes on a JMenuBar and I don't think it's a wise solution. I may be wrong though.
hellbindera at 2007-7-10 3:08:21 > top of Java-index,Desktop,Core GUI APIs...
# 2
the comboboxes and textfield work fine in jmenubar and resize is not the thing i want to do i just wanted to put the two textfields right under the comboboxesand i don't want to put them in toolbar even though i thought about it as alternative plan
nobbynobbesa at 2007-7-10 3:08:21 > top of Java-index,Desktop,Core GUI APIs...
# 3
Your questions doesn't make much sense to me either, so I'll just point you to the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers[/url]. Use multiple layout managers to get your desired layout.
camickra at 2007-7-10 3:08:21 > top of Java-index,Desktop,Core GUI APIs...
# 4
Yep camickr is right (as usual) you have to overide JMenuBar's default Layout with GridLayout for example
hellbindera at 2007-7-10 3:08:21 > top of Java-index,Desktop,Core GUI APIs...
# 5
ok thanks i'll try this
nobbynobbesa at 2007-7-10 3:08:21 > top of Java-index,Desktop,Core GUI APIs...
# 6
> Yep camickr is right (as usual) you have to overide> JMenuBar's default Layout with GridLayout for exampleWhy?He can add a JPanel containing the text fields and combo boxes with the appropriate layout manager.No need to override JMenuBar.
Rodney_McKaya at 2007-7-10 3:08:21 > top of Java-index,Desktop,Core GUI APIs...
# 7

> Why?

> He can add a JPanel containing the text fields and

> combo boxes with the appropriate layout manager.

> No need to override JMenuBar.

That's what I'd do myself, but iF the OP needs to use JMenuBar desperately (I can't think of a reason to do so) that's the probable solution

hellbindera at 2007-7-10 3:08:21 > top of Java-index,Desktop,Core GUI APIs...
# 8
> That's what I'd do myself, but iF the OP needs to use JMenuBar desperately (I can't think of a reason to do so) that's the probable solution No.He can add a JPanel to the menu bar.
Rodney_McKaya at 2007-7-10 3:08:22 > top of Java-index,Desktop,Core GUI APIs...