Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Daryl Butler   on Sep 04 In Java Category.

  
Question Answered By: Husani Chalthoum    on Sep 04

I have gotten it to init & start, but it then fails & points me to
some java  tutorial pages:

java.sun.com/.../example-
1dot4/tumbleClasses.jar tumbleImages.jar

Here's the code to start it al, main  if you will:

import javax.swing.*;
/**
* Description of the Class
*
*@author john
*@created April 25, 2003
*/
public class  BusMainGui extends JApplet {

/**
* Description of the Method
*/

public BusMainGui() { }


/**
* The main program  for the class
*/

//public static  void main(String[] arg)
public void  init() {


}


/**
* Description of the Method
*/
public void start() {

String title  = "Find Your Favorite Busness Here!";
BusMainGui mainGui = new BusMainGui(title);
mainGui.drawMain();

}
}


I want this to open a frame drawn by mainGui.drawMain().

Maybe I'm misunderstanding something. After the user makes a choice
from a list in this window, a bunch of SQL is run  then another window
needs to open. I'm quite willing to have the new page of data in a
new browser window or in the same window(and the user would hit the
back button to select new)


Does the frame in mainGui.drawMain() have to be another JApplet (r
should I just put all of the code in BusMainGui? And how do I get a
new results page to open?

Share: 

 
 
Didn't find what you were looking for? Find more on JApplet will not run Or get search suggestion and latest updates.


Tagged: