Solved

Gird width problem with JDateChooser object

Posted on 2006-06-27
5
494 Views
Last Modified: 2006-11-18
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(beginDateChooser, gbc);
nPane.add(new JLabel("Begin Date"), gbc);
gbc.gridx++;
nPane.add(beginDateChooser, gbc);  //point where field needs to be wider, but just not
0
Comment
Question by:TheVeee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 100 total points
ID: 16996320
Try setting weightx for that column
0
 
LVL 5

Author Comment

by:TheVeee
ID: 16996603
CEHJ,

Tried that, nothing happened at all....

Its like the 5 columns are locked... looks like this is never set anywhere except on the default....
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 16997163
why are u adding the date chooser two times?

try setting wightx and fill properties.

and gbc.anchor = GridBagConstraints.WEST;
0
 
LVL 26

Accepted Solution

by:
ksivananth earned 400 total points
ID: 16997165
also try setting ipadx value
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17013955
:-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Html Table Looping (part 2) 5 42
jmeter usage 4 68
dao vs facade design patterns 2 75
Java ArrayList and if statement 2 55
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question