Solved

Delete from a specific cell in Jave Gridbaglayout

Posted on 2009-04-07
1
295 Views
Last Modified: 2012-05-06
Hello experts,

Is there a way for me to delete the contents of a single cell in Java Swing Panel with a GridbagLayout ? I don't have a reference to the object in the cell, but I would like to delete it never the less. Something like making the selected cell empty or something.

Thanks
0
Comment
Question by:Mannsi
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 24086097
no, the GridbagLayout just lays the components out.
It does not give you access to the components that it has laid out.
You'll need to get them from the Container, see its getChildren() method

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now