i cant choose my applet as the main class, therefore I cant create a jar file of my project. How can I make a jar of my project or make my applet the main class? or how can I call my gui from another class?
Printable View
i cant choose my applet as the main class, therefore I cant create a jar file of my project. How can I make a jar of my project or make my applet the main class? or how can I call my gui from another class?
Since Applets don't have a main method you can't do that. But when calling the jar file from the browser, you can specify the class you want to run
Can you expand on this please?Quote:
Originally Posted by ComputerJy
I see ...
Maybe Im using the wrong project for my GUI's. What should I use instead of java applet? I want to make offline apps.
Applets like any other web based programs can run offline, but launching them needs an HTML document or command lineQuote:
Originally Posted by xxarmoxx
I figured out whats wrong. I was making my GUI on a java applet form but I should have made it on a jFrame form. It works now.