testgraphical.java

来自「国外的数据结构与算法分析用书」· Java 代码 · 共 16 行

JAVA
16
字号
public class TestGraphical
{
	public static void main (String args[])
	{
		SimpleFrame inFrame = new SimpleFrame();
		int y = inFrame.readInt("Enter an integer");
		System.out.println("The value read for y was " + y);

		GuiOutput outFrame = new GuiOutput();
		outFrame.displayOutput("1234567890120345678901234567890123456789012345678901234567890",
"title");
		outFrame.displayOutput("junk\n\n\n\n\n\n\njunk\n\n\n\n\n\n\njunk\n\n\n\n\n\n\njunk\n\n\n\n\n\n\njunk\n\nadfasdf", "Title here");
		System.exit(0); // now need to close the program
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?