代码搜索:Getting
找到约 2,749 项符合「Getting」的源代码
代码结果 2,749
www.eeworm.com/read/127767/14335890
txt e410. getting the maximum size of a preference key and value.txt
// Get maximum key length
int keyMax = Preferences.MAX_KEY_LENGTH;
// Get maximum value length
int valueMax = Preferences.MAX_VALUE_LENGTH;
// Get maximum length of by
www.eeworm.com/read/127767/14335937
txt e893. getting the file-type name of a file.txt
Files and directories have a type, usually based on their extension. This example retrieves the name of the file type. Examples of file-type names include Java Source and Shortcut. This name is displa
www.eeworm.com/read/127767/14335979
txt e901. getting the file-type icon of a file.txt
The icon displayed next to directories and filenames in a file chooser dialog can be retrieved and used in other applications.
JFileChooser chooser = new JFileChooser();
// Create a F
www.eeworm.com/read/127767/14336200
txt e624. getting the number of rows and columns of cells in a gridbaglayout.txt
The number of rows and columns in a GridBagLayout automatically grows as needed when components are added. The current number of rows and columns can be determined by calling getLayoutDimensions(). Ho
www.eeworm.com/read/127767/14336281
txt e299. getting an object value from an oracle table.txt
This example retrieves values contained in an Oracle OBJECT type. The example uses the table and types created in e296 Creating an OBJECT Type in an Oracle Database.
try {
// Create a s
www.eeworm.com/read/127767/14336295
txt e409. getting and setting java type values in a preference.txt
A preference node holds only string values. However, the Preferences class has convenience methods that will convert a number of basic Java types to and from strings. For example, Preferences.putByteA
www.eeworm.com/read/127767/14336397
txt e907. getting the number of rows and columns in a jtable component.txt
int rows = table.getRowCount();
int cols = table.getColumnCount();
www.eeworm.com/read/127767/14336493
txt e260. getting and inserting binary data into an database table.txt
This example inserts and retrieves binary data into the table created in e248 Creating a MySQL Table to Store Java Types.
try {
// Prepare a statement to insert binary data
Str
www.eeworm.com/read/127767/14336795
txt e826. getting and setting the divider location in a jsplitpane container.txt
The location of a divider is measured in pixels from either the left edge (in the case of a horizontal split pane) or the top edge (in the case of a vertical split pane).
There are two ways to set t
www.eeworm.com/read/127767/14336797
txt e370. getting the current time in another time zone.txt
// Get the current time in Hong Kong
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Hongkong"));
int hour12 = cal.get(Calendar.HOUR); // 0..11
int minutes = ca