代码搜索:Getting
找到约 2,749 项符合「Getting」的源代码
代码结果 2,749
www.eeworm.com/read/127767/14337193
txt e829. getting and setting the selected tab in a jtabbedpane container.txt
// To create a tabbed pane, see e828 Creating a JTabbedPane Container
// Get the index of the currently selected tab
int selIndex = pane.getSelectedIndex();
// Select the la
www.eeworm.com/read/127767/14337225
txt e892. getting and setting the selected file of a jfilechooser dialog.txt
When setting the selected file, the file chooser dialog automatically sets the current directory.
JFileChooser chooser = new JFileChooser();
// Set the current directory to the applic
www.eeworm.com/read/127767/14337260
txt e125. getting and setting the value of an element in an array object.txt
// Get the value of the third element.
Object o = Array.get(array, 2);
// Set the value of the third element.
Array.set(array, 2, newValue);
www.eeworm.com/read/127767/14337262
txt e673. getting amount of free accelerated image memory.txt
Images in accelerated memory are much faster to draw on the screen. However, accelerated memory is typically limited and it is usually necessary for an application to manage the images residing in thi
www.eeworm.com/read/127767/14337304
txt e813. getting the currently selected menu or menu item.txt
The currently selected menu or menu item in a JMenu or JPopupMenu is tracked by MenuSelectionManager and can be retrieved by calling MenuSelectionManager.getSelectedPath(). This method returns an arra
www.eeworm.com/read/127767/14337388
txt e140. getting the response headers from an http connection.txt
try {
// Create a URLConnection object for a URL
URL url = new URL("http://hostname:80");
URLConnection conn = url.openConnection();
// List all the response
www.eeworm.com/read/127767/14337535
txt e926. getting and setting a cell value in a jtable component.txt
// Retrieve the value in the visible cell (1,2)
int rowIndex = 1;
int vColIndex = 2;
Object o = table.getValueAt(rowIndex, vColIndex);
// Retrieve the value in cell (1,2) fro
www.eeworm.com/read/127767/14337719
txt e708. getting the default value of a print job capability.txt
The capabilities of a print job are called print job attributes. Examples of print job attributes include: Copies, OrientationRequested, and Destination. This example demonstrates how to retrieve the
www.eeworm.com/read/127767/14337730
txt e146. getting the ip address and hostname of the local machine.txt
try {
InetAddress addr = InetAddress.getLocalHost();
// Get IP Address
byte[] ipAddr = addr.getAddress();
// Get hostname
String hostname = add
www.eeworm.com/read/127767/14337767
txt e477. getting an object's fully qualified name.txt
This example gets an object's fully qualified name in its own namespace.
try {
Context obj = (Context)childCtx.lookup("grandChild");
String fullname = obj.getNameInNamespace();