user interface - Question about making a JAVA GUI of a certain format -


i trying make gui looks this:

i know how use borderlayout has space 5 buttons. north, west, center, east, , south.

since need have 6 components on top line, approach can't work. i'm not sure how make can have more 1 component on top line. there other layouts can use or there way can manipulate borderlayout can put 6 components on top line?

what need nest components inside of other components. example, top (north) should 1 jpanel. jpanel contain 6 components on top.

the code may similar following:

jpanel northpane = new jpanel(); northpane.add(new jlabel("principle: ")); northpane.add(principletextbox); ... , on mainpanel.setlayout(new borderlayout()); mainpanel.add(northpanel, borderlayout.north); 

the center component jpanel containing 2 center buttons. , south component jpanel containing single jlabel or jlabel.

if don't have use borderlayout main panel, may easier use boxlayout.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -