java - How can I make my CheckBox allign in Left side and what should I use layout to make it every checkbox print in another line? -


how can make checkbox allign in left side , should use layout make every checkbox print in line?

private void preparegui(){   mainframe = new jframe("aime's store");   mainframe.setsize(400,400);   mainframe.setlayout(new gridlayout(2,1));   mainframe.addwindowlistener(new windowadapter() {      public void windowclosing(windowevent windowevent){         system.exit(0);      }           });       headerlabel = new jlabel("", jlabel.left);           statuslabel = new jlabel("",jlabel.left);        statuslabel.setsize(350,100);    controlpanel = new jpanel();   controlpanel.setlayout(new flowlayout());    mainframe.add(headerlabel);   mainframe.add(controlpanel);   mainframe.add(statuslabel);   mainframe.setvisible(true);   } 

how can make checkbox allign on left?

  final jcheckbox chkcolgate = new jcheckbox("colgate");   final jcheckbox chkhappy = new jcheckbox("happy");   final jcheckbox chkbeam = new jcheckbox("beam"); 

what particular layout use in order make on flow vertically? please me please me new kind of codes.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -