Solved

removeNotify() in class JButton

Posted on 2010-11-13
2
587 Views
Last Modified: 2012-05-10
Can some one please please explain this removeNotify() method  to me in JButton class. ?

Moreover I pretty much understand the component hierarchy, but not sure about what "root pane" is all about ..

thanks a lot !

public void removeNotify()
Overrides JComponent.removeNotify to check if this button is currently set as the default button on the RootPane, and if so, sets the RootPane's default button to null to ensure the RootPane doesn't hold onto an invalid button reference.
0
Comment
Question by:hipal
  • 2
2 Comments
 
LVL 92

Expert Comment

by:objects
ID: 34128912
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34128934
removeNotify() removes the native winmdow resource
its not something you should worry about and is only used internally
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
git hub on ubuntu clone a git hub repo how do i find the "packed' file that it downloaded 5 39
split53 challenge 7 77
JDeveloper 12c for 32 bit 4 66
table example 4 19
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

947 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

16 Experts available now in Live!

Get 1:1 Help Now