TAILIEUCHUNG - Java Swing phần 10

Các quan sát quan tâm sẽ thông báo bảng thuộc tính chỉ ra rằng có 47 hành động có sẵn. Một hành động không được định nghĩa như là một hằng số, nhưng vẫn còn có cái tên "mô hình-dump." Hành động này chỉ là các cuộc gọi đổ () trên các tài liệu của JTextComponent hiện đang tập trung (giả định nó là một | Java Swing - O Reilly JScrollBar. isFreeStanding Set to by the Metal L F for any scrollbars used by JScrollPanes. This setting just indicates that the scrollbar should be displayed flush against its borders. Normally there is a small space around the scrollbar. Typically you won t have reason to change this particular value. JSlider. isFilled Can be set to to cause the slider s track to be filled on one side to clearly differentiate the space on either side of the thumb. JToolBar. isRollover Can be set to to cause the border on each of the toolbar s buttons to be replaced with a special rollover border. This border is the same as the button s default border except that it is only painted when the cursor is over the button meaning that at any given time at most one button in the toolbar will have a border. Netscape users will recognize this feature from the toolbars in Navigator. JTree. lineStyle This property can be set to Angled or None or the default Horizontal to change the way the tree structure is drawn. By default horizontal lines are drawn to separate branches of the tree. Setting this property to Angled causes short angled lines to be drawn between the nodes. As you might guess setting it to None turns off both features. Replacement of Individual UI Delegates Say you re using a L F that you re basically happy with but there are a few components you wish had a slightly different appearance. If the changes you want to make can t be done by simply changing resource values one option is to implement your own custom UI delegates for the components you want to change and then tell the UIManager to use your new classes instead of the L F defaults. Modifying a Scrollbar We ll show how this can be done with a very simple example. We ve decided to toss aside the nice clean consistent design of the Metal L F by changing the way the thumb of the scrollbar is displayed. To keep the code as simple as possible we re

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.