Re: I have a GUI problem# Java - 爪哇娇娃
N*e
1 楼
Here's the code(awt), if it's not working on linux, it's because the JAVA VM
not good. I also tried it by swing, there's also more than one way to make it
work under swing.
import java.awt.*;
import java.awt.event.*;
public class Testing implements ActionListener{
private int lineCount = 100;
private TextArea testTA;
private Frame testFrame;
public Testing(){
testFrame = new Frame();
testTA = new TextArea(20,40);
Button testButton = new
not good. I also tried it by swing, there's also more than one way to make it
work under swing.
import java.awt.*;
import java.awt.event.*;
public class Testing implements ActionListener{
private int lineCount = 100;
private TextArea testTA;
private Frame testFrame;
public Testing(){
testFrame = new Frame();
testTA = new TextArea(20,40);
Button testButton = new