java-知识点复习总结.pptxVIP

  • 0
  • 0
  • 约1.57千字
  • 约 15页
  • 2018-06-17 发布于上海
  • 举报
java 知识点总结;The “White Paper ” Buzzwords;JVM Java Virtual Machine JDK Java Development Kit JRE Java Runtime Environment IDE Integrated Development Environment集成开发环境 GUI Graphical?User?Interface Application vs. Applet ;enum type enum Size { SMALL, MEDIUM, LARGE, EXTRA_LARGE }; Size s = Size.MEDIUM; ;Predefined class Date b_day = new Date(); System.out.println(b_day); // get the year System.out.println(b_day.getYear()); System.out.println(b_day.getMonth()); ......;comment Multi-line comments: /* like this ... */ Documentation comments: /** * This is the first sample program in Core Java Chapter 3 * @version 1.01 1997-03-22 * @author Gary Cornell */ ;Use?super?to avoid recursive call public class Manager extends Employee { private double bonus; public double getSalary() { return super.getSalary() + bonus;? } };Special objects Integer Double;ScreenSize Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Resizable();Changefont ActionListener checkbListener = event - { ? ? ? ? ? int mode = 0; ? ? ? ? ? if (bold.isSelected()) mode += Font.BOLD; ? ? ? ? ? if (italic.isSelected()) mode += Font.ITALIC; ? ? ? ? ? label.setFont(new Font(Serif, mode, FONTSIZE)); };;toolbar JToolBar bar = new JToolBar(); // Define a button with a given icon JButton btnRed = new JButton(new ImageIcon(red-ball.gif)); // Specify the action btnRed.addActionListener(e - label.setForeground(Color.red)); // Add the button to the bar bar.add(btnRed);;Message Dialog;Confirm Dialog;Input Dialog;Arrays.toString();

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档