原创 Java等待喚醒機制wait/notify

爲了弄明白wait/notify機制,我們需要了解線程通信、volatile和synchronized關鍵字、wait/notify方法、Object的monitor機制等相關知識。本文將會從這幾個方面詳細講解Java的wait/notif

原创 java.io.DataInput接口和java.io.DataOutput接口詳解

DataInput和DataOutput兩個接口分別提供了從流中讀取二進制數據轉化爲java基本數據和向流中寫入由java基本數據轉成的二進制數據,功能十分強大。 一、DataInput 接口用於從二進制流中讀取字節,並重構所有 Java

原创 JavaFX TitledPane

The JavaFX TitledPane control is a container control which displays its content inside a a pane (box) which at the top c

原创 JavaFX SplitPane

The JavaFX SplitPane is a container control that can contain multiple other components inside it. In other words, the Sp

原创 JavaFX TabPane

The JavaFX TabPane is a container control which can contain multiple tabs (sections) internally, which can be displayed

原创 JavaFX Accordion

The JavaFX Accordion control is a container control which can contain several sections internally, each of which can hav

原创 JavaFX FileChooser

A JavaFX FileChooser class (javafx.stage.FileChooser) is a dialog that enables the user to select one or more files via

原创 JavaFX DirectoryChooser

A JavaFX DirectoryChooser is a dialog that enables the user to select a directory via a file explorer from the user's lo

原创 JavaFX Tooltip

The JavaFX Tooltip class (javafx.scene.control.Tooltip) can display a small popup with explanatory text when the user ho

原创 JavaFX ToolBar

The JavaFX ToolBar class (javafx.scene.control.ToolBar) is a horizontal or vertical bar containing buttons or icons that

原创 JavaFX ProgressBar

The JavaFX ProgressBar is a control capable of displaying the progress of some task. The progress is set as a double val

原创 JavaFX TextArea

A JavaFX TextArea control enables users of a JavaFX application to enter text spanning multiple lines, which can then be

原创 JavaFX PasswordField

A JavaFX PasswordField control enables users of a JavaFX application to enter password which can then be read by the app

原创 JavaFX Slider

The JavaFX Slider control provides a way for the user to select a value within a given interval by sliding a handle to t

原创 JavaFX DatePicker

A JavaFX DatePicker control enables the user to enter a date or choose a date from a wizard-like popup dialog. The popup