![]() |
| ||
| Error warning using show() from java.awt.Window Self-teaching Java, I am following a video tutorial about simple windows. Encountered a warning error using the example provided in the tutorial. Here's the piece of code. import java.awt.Frame; Here's the warning when compiled without flags: C:\Programming\JavaProg\HowdyWindow>javac HowdyByeWindow.java Followed the second note and compiled using -Xlint:deprecation: C:\Programming\JavaProg\HowdyWindow>javac -Xlint:deprecation HowdyByeWindow.java What do I need to do about that warning? Can I substitute show() for something else? Don't mind if you explain to me things like if "I were a dummy", since I'm barely getting acquaint with the language. |
| ||
| Re: Error warning using show() from java.awt.Window change from show() to setVisible(true) .... and find a better tutorial, that one's outdated. |
| ||
| Re: Error warning using show() from java.awt.Window Quote:
|
| ||
| Re: Error warning using show() from java.awt.Window Thank you. |
| All times are GMT -4. The time now is 12:08 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC