readme

来自「这是一个英文版的《Java程序设计与问题解决》现在好多大学都当成教材」· 代码 · 共 37 行

TXT
37
字号
ActionDemo:----------------- replaced button=setAction(action) with button.setAction(action);	toolbar.add(button) (as of 1.3)- extends JPanel instead of extends JFrame- BorderLayout.PAGE_START instead of BorderLayout.NORTH- Standardized main method.- Use EXIT_ON_CLOSE.- Made textArea uneditable.- Switched to icons in Graphics Repository (Back24, Up24, Forward24	instead of middle.gif, left.gif, right.gif)- Converted to getResource- Converted anonymous inner classes (for actions) to named  AbstractAction subclasses (LeftAction, RightAction, MiddleAction)- separated the logic for the menu and the toolbar into separate methods	(createMenuBar and createToolBar)- setDefaultLookAndFeelDecorated(true)BorderDemo:----------------- Standardized main method.- Use EXIT_ON_CLOSE.- setDefaultLookAndFeelDecorated(true)- Added lowered etched border (new in 1.3)CustomIconDemo:----------------- Standardized main method.- Use EXIT_ON_CLOSE.- setDefaultLookAndFeelDecorated(true)- Converted to getResource for the middle iconAccessibleScrollDemo:----------------- Same changes as for components/ScrollDemo

⌨️ 快捷键说明

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