帮你修改好了。import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.border.*;public class book
extends JFrame {
static bookpanel bp = new bookpanel(); public book() {
this.setBounds(100, 100, 500, 500);
this.setTitle("This is the Title");
this.getContentPane();
} public static void main(String[] args) {
JFrame bj = new book();
bj.setVisible(true);
}
}class bookpanel
extends JPanel {
public bookpanel() { }
}
import javax.swing.*;
import java.awt.event.*;
import javax.swing.border.*;public class book
extends JFrame {
static bookpanel bp = new bookpanel(); public book() {
this.setBounds(100, 100, 500, 500);
this.setTitle("This is the Title");
this.getContentPane();
} public static void main(String[] args) {
JFrame bj = new book();
bj.setVisible(true);
}
}class bookpanel
extends JPanel {
public bookpanel() { }
}
解决方案 »
- java 多线程问题
- 如何强制编译java过时Api
- Java初学者的困惑
- 如何把含有大小写的String全部转换成大写或者小写啊?
- Eclipse的ve插件是不是不能安装在jdk1.5环境下?昨天用eclipse3.1.1+emf-sdo-runtime2.1+GEF-runtime3.1+VE-runtime1.1.0.1始终不成功
- 急求,在线等,关于多线程通信PipedReader的问题。
- 统计一下大家都用JAVA做些什么?
- 在java中如何设置本地的时间?
- 关一个小笨蛋生存的困惑,还请各位GG、JJ一定要帮帮忙呀~~~~
- i have a string="<html><body><p>haha</p>.......",how can i biuld it into a HTMLDocument
- 请教关于replaceAll方法和正则表达式
- 字符窜中提取数字的方法
class book extends JFrame
{
//.....}
public class book extends JFrame{}