Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me for converting AWT to Swing

Status
Not open for further replies.

omid020

Technical User
Jul 15, 2007
28
IR
Hi
I`m not a programmer .But I have an applet that I like to translate it to my native language .So I decided convert any class from AWT to Swing . Here there is a manual for it :
I`ve done those steps but I receive many errors while compiling .
I place one small class here with AWT components :
----------------------------------------------------
import java.awt.Component;
import java.awt.Window;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

private final class AboutDialog$1 extends WindowAdapter
{

public void windowClosing(WindowEvent windowevent)
{
setVisible(false);
dispose();
}

AboutDialog$1()
{
}
}
--------------------------------------------------------
Please convert it to Swing mode for me . I want to find out my problems reason with doing this comparison .
TNX
 
a) Use code-tags for your code
b) eliminate unused imports (Component, Window)
c) Don't choose funky names like AboutDialog$1

Done that - your code is Swing, because events are used from AWT in Swing too.

Show your errors.
The content of the messages is intended to be read, and understood.

don't visit my homepage:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top