mitesh_agg
October 23rd, 2006, 08:29 AM
I am a starter in java programming.
I learned to create the GUI frame usin java awt package.
the code is as follws:
import java.awt.*;
public class Ex1 {
private Frame f;
public Ex1() {
f= new Frame("hello");
}
public void launchFrame() {
f.setSize(400,300);
f.setVisible(true);
}
public static void main(String a[]) {
Ex1 gw=new Ex1();
gw.launchFrame();
}
}
The code works fine in Windows XP but in Ubuntu when class file runs the title "hello" of frame is missing.
I am using JSDK 1.5 update 9 in both operatin syatem and all paths are well defined as all of my codes tried bfore run properly on both systems.
Please help me out.
I learned to create the GUI frame usin java awt package.
the code is as follws:
import java.awt.*;
public class Ex1 {
private Frame f;
public Ex1() {
f= new Frame("hello");
}
public void launchFrame() {
f.setSize(400,300);
f.setVisible(true);
}
public static void main(String a[]) {
Ex1 gw=new Ex1();
gw.launchFrame();
}
}
The code works fine in Windows XP but in Ubuntu when class file runs the title "hello" of frame is missing.
I am using JSDK 1.5 update 9 in both operatin syatem and all paths are well defined as all of my codes tried bfore run properly on both systems.
Please help me out.