Solved

removeNotify() in class JButton

Posted on 2010-11-13
2
584 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is about my first experience with programming Arduino.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

760 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

22 Experts available now in Live!

Get 1:1 Help Now