i am using a GridBagLayout and it works fine when i take my coordinates to place an asterisk on the frame but if i try to extract the coordinates from an sql table then it just displays one single asterisk and which would be in the center.. and if i try to print the sql table enteries on console then they are printing perfectly.. any idea why this is happening to me?

i am setting the gridx,gridy constraints to my sql enteries and then try to add a label to a panel on those constraints but it gives me an asterisk only in the middle of the frame..

Cheers

Perhaps you just need to revalidate() the panel after you've added the new components?

Please stop opening duplicate threads. Post your code into this thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.