JCheckbox in Java swing -


I have created a checkbox like this:
  jacaxbox field = new jacquet box (" EDEX: "true,");   

I was adding it to Genpel and the layout is a formulas using Selconstrines XI positions.

But this does not display the EDEX text after the checkbox.

This code is:

  panel.add (field, cc.xy (5, 3));   

Please help me

thanks

< P> This works fine:

Enter image details here

  Import java.awt.EventQueue; Import com.jgoodies.forms.layout.CellConstraints; Import com.jgoodies.forms.layout.FormLayout; Import javax.swing.JCheckBox; Import javax.swing.JFrame; Import javax.swing.JPanel; Public class examples {public example (formulate layout = new formlate ("left: pref, 15px, center: pref, 15px, right: pref, 15px, fill: pref, 15px, pref", "pref, 12px, pref, 4px, pref, 4px, pref, 4px, pref, 4px, pref "); Zpean panel = new zpn (layout); Cell Consultancy CC = New Cell Consultancy (); JCheckBox field = new JCheckBox ("EDEX:", true); Panel.add (field, cc.xy (5, 3)); JFrame f = new JFrame (); F.setBounds (10, 10, 100, 100); F.setDefaultCloseOperation (3); F.getContentPane () Add (panel); F.setVisible (true); } Public static zero chief (string [] algens) {EventQueue.invokeLater (new runleball) {@Override Public runs zero () {new example ();}}); }}    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -