Hi,
My application's title bar is missing when I run from hp unix. The same code works well in Windows NT. Even this example code below doesn't display its titlebar.
What could possibly cause the problem?
I compile with this
/opt/java1.3/bin/javac -classpath .:/opt/java1.3/lib FrameDemo.java
I run with this:
/opt/java1.3/bin/java -classpath .:/opt/java1.3/lib FrameDemo
The code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class FrameDemo {
public static void main(
String s[]) {
JFrame frame = new JFrame("FrameDemo");
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
JLabel emptyLabel = new JLabel("");
emptyLabel.setPreferredSize(new Dimension(175, 100));
frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
frame.setTitle("SampleFrame");
frame.pack();
frame.setVisible(true);
}
}