Hello to all.  I am using JDK1.1.5v7 for Linux, and
JDK1.1.6 for WindowsNT 4.0.  I got the app below
to compile in Windows, but not in Linux.  Some-
times a window pops up, other times nothing
happens(but cpu usage is around 95%).

I am running Glibc-2.0.7, with X 3.3.2.2.

Any ideas or possible solutions would be helpful.

So far, I am very impressed with JDK for Linux.
I can run HotJava and ICQ with it without flaws of
any kind.  Keep up the good work.


>import java.awt.*;
>import java.awt.event.*;
>
>
>public class BibleTool extends Frame {
>
>static Frame F = new Frame("BibleTool");
>
>public static void main(String[] argv)  {
>       makeGUI();
>       while(1==1);
>}
>
>
>static  void makeGUI()  {
>       
>       F.setSize(600,400);
>       F.setLocation(200,50);
>       F.setResizable(false);
>
>       Menu M = new Menu("File");
>       Menu M2 = new Menu("Search");
>       Menu Help = new Menu("Help");
>       MenuBar MBar = new MenuBar();
>       M.add("Open");
>       M.add("Save");
>       M.addSeparator();
>       MenuItem m = new MenuItem("Quit");
>       m.addActionListener(new QuitClass());
>       M.add(m);
>       M2.add("Search for a word...");
>       M2.add("Search for a phrase...");
>       M2.addSeparator();
>       M2.add("Search notes...");
>       Help.add("Contents");
>       Help.add("Topics");
>       Help.add("Warranty");
>       Help.addSeparator();
>       Help.add("About");
>       MBar.add(M);
>       MBar.add(M2);
>       MBar.add(Help);
>       MBar.setHelpMenu(Help);
>       F.setMenuBar(MBar);
>       F.setVisible(true);
>}
>
>} 
>
>class QuitClass implements ActionListener  {
>
>public void actionPerformed(ActionEvent ae)  {
>       System.exit(0);
>}
>
>}
>
>

Bob Thoelen

___________________________________________________
Get Your Free Email at http://www.friendlyemail.com

Reply via email to