Search code examples
swingnetbeanslayout-managerboxlayoutpalette

Inserting a Swing BoxLayout graphically via Netbeans palette


I'm trying to insert a Swing BoxLayout to my jFrame graphically using netbeans palette, but i can't find any way to do it

Here is my my NB palette

any suggestion or help will be welcomed :)


Edit:

Problem resolved thanks to @kyal-bond 's solution : just i have to put a Panel, then right click on it and choose "Set layout" then choosing "Box Layout".

Thank you again @kyal-bond ^^


Solution

  • You cannot add Layouts to JFrames, first add a Panel to that frame and then you may add layouts to that. JFrames are kind of just window containers and don't actually do much in terms of editing layouts.