Solved

Delete from a specific cell in Jave Gridbaglayout

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

749 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