Gird width problem with JDateChooser object
Posted on 2006-06-27
I have a new date drop down selection box and I having problerms with the grid not making it wide enough so the date is actually there, but on digit is half cut off when viewing...
How do I widen the grid field to allow it wider.. I have included partial code below...
*** beginDateChooser is a JDateChooser object widget ***
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(5, 2, 2, 2);
gbc.anchor = 17;
gbc.gridx = 0;
gbc.gridy = 0;
nPane.add(new JLabel("Begin Date"), gbc);
nPane.add(beginDateChooser, gbc); //point where field needs to be wider, but just not