Current Position:Home > JSDK SE 1.4.2_03 Bugs?!

JSDK SE 1.4.2_03 Bugs?!

Update:10-11Source: network consolidation
Advertisement
I use SE SDK 1.4.2_03
What wrong with:
JFrame frame = new JFrame("HelloWorldSwing");
I get this error:
HelloWorldSwing.java:5: cannot resolve symbol
symbol : constructor JFrame (java.lang.String)
location: class JFrame
JFrame frame = new JFrame("HelloWorldSwing");
^
1 error
I can still use setTitle("HelloWorldSwing"); but there is another problem ...
somehow the Panel doesnt shows up
Original Source Code(from the Swing Tutorial):
import javax.swing.*;
public class HelloWorldSwing {
public static void main(String[] args) {
JFrame frame = new JFrame("HelloWorldSwing");
final JLabel label = new JLabel("Hello World");
frame.getContentPane().add(label);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}

The Best Answer

Advertisement
There's no JPanel anywhere in any of the code you posted, so I am not at all surprised that no JPanel shows up in your GUI. Whatever your problem is, it certainly isn't a bug in the SDK.

Database error: [Table 'ac_posts' is marked as crashed and should be repaired]

SELECT a.*, b.post_content FROM ac_posts a INNER JOIN ac_posts_content b ON a.ID = b.ID WHERE a.ID IN(948089,948028,137923,948047,1125375,1230125,2185015,4739069,932,3294) ORDER BY FIELD(a.ID, 948089,948028,137923,948047,1125375,1230125,2185015,4739069,932,3294);