Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

1 Visitor Messages

  1. I'm very new to java.
    I've been trying to make a executable jar file.That means I wanna create a file which can be run 2x clicking. I went through so many tutorials, but i could find the correct answer. Actually I created a few jar files but could run 2X clicking. Plz help me how to do this.
    I couldn't do it creating a manifest file.
    Convert Java to EXE - Why, When, When Not and How



    import java.awt.Frame;
    import java.awt.Label;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;

    public class AwtExample {

    public static void main(String[] args) {

    Frame f = new Frame();
    f.addWindowListener
    (new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    }
    }
    );
    f.add(new Label("Test "));
    f.setSize(500,500);
    f.setVisible(true);
    }
    }
Showing Visitor Messages 1 to 1 of 1
About Prashan

Basic Information

About Prashan
Java Skill Level:
Beginner

Statistics


Total Posts
Total Posts
1
Posts Per Day
0.00
Visitor Messages
Total Messages
1
Most Recent Message
April 12th, 2012 12:58 AM
Total Thanks
Total Thanks
0
  • Thanked 0 Times in 0 Posts
General Information
Last Activity
April 12th, 2012 09:00 PM
Join Date
April 11th, 2012