tailieunhanh - Beginning Java SE 6 Platform From Novice to Professional phần 2

Tóm tắt Windowing Toolkit (AWT) là nền tảng cho cả hai AWT và Swing dựa trên giao diện đồ họa. Chương này tìm hiểu các tính năng mới và cải tiến mà Java SE 6 mang đến AWT: • Desktop API • Năng động, bố trí • Cải thiện hỗ trợ cho đầu vào miền địa phương không phải tiếng Anh • mô hình mới phương thức và API | 28 CHAPTER 1 INTRODUCING JAVA SE 6 Create a true ownerless Swing dialog. JDialog d2 new JDialog Window null Dialog 2 Dialog 2 Create an ownerless frame. Frame f new Frame Frame 1 Create a window owned by the frame. Window w1 new Window f Window 1 Create an ownerless window. Window w2 new Window null Window 2 Output lists of all windows ownerless windows and frame windows. ALL WINDOWS Window windows for Window window windows OWNERLESS WINDOWS Window ownerlessWindows for Window window ownerlessWindows FRAME WINDOWS Frame frames for Frame frame frames CHAPTER 1 INTRODUCING JAVA SE 6 29 After compiling the source code and running this application you ll discover the following output which reveals that Dialog 1 is not a true ownerless window ALL WINDOWS frame0 class SharedOwnerFrame Dialog 1 class Dialog 2 class Frame 1 class Window 1 class Window 2 class OWNERLESS WINDOWS frame0 class SharedOwnerFrame Dialog 2 class Frame 1 class Window 2 class FRAME WINDOWS frame0 class SharedOwnerFrame Frame 1 class Navigable Sets Chapter 2 introduces Java SE 6 s enhanced collections framework. One enhancement worth mentioning here is a new E interface which extends the older E interface and facilitates navigating through an ordered setbased collection. A navigable set can be accessed and traversed in ascending order via the Iterator E iterator method and in descending .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.