I got problems in GridBagConstraints, no matter I set the gridY value to be, the compoents always place on the middle of Frame, can anybody help me, I want to place the component start from the upper left corner Screen(0.0) position. thanks !!!
posted 13 years ago
Everything in a GridBagLayout is clumped in the center of the container unless you allow the components to disperse into the available space. You do this by setting weighty and weightx to non–zero values.