Solved

Delete from a specific cell in Jave Gridbaglayout

Posted on 2009-04-07
1
296 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split string containing \r\n in Java 46 38
servlet  URL Rewriting 1 27
diffSum example 4 26
how to add new optional parameter to JSP 1 29
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

867 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

21 Experts available now in Live!

Get 1:1 Help Now