代码搜索:Getting
找到约 2,749 项符合「Getting」的源代码
代码结果 2,749
www.eeworm.com/read/127767/14336904
txt e138. getting a jar file using a url.txt
try {
// Create a URL that refers to a jar file on the net
URL url = new URL("jar:http://hostname/my.jar!/");
// Create a URL that refers to a jar file in the file sys
www.eeworm.com/read/127767/14336943
txt e944. getting the anchor cell in a jtable component.txt
The anchor cell in a table component is the cell that received the most recent mouse click. In some applications, the content of the anchor cell is automatically displayed in another larger and more c
www.eeworm.com/read/127767/14336962
txt e114. getting the field objects of a class object.txt
There are three ways of obtaining a Field object from a Class object.
Class cls = java.awt.Point.class;
// By obtaining a list of all declared fields.
Field[] fields = cls.getDec
www.eeworm.com/read/127767/14337008
txt e664. getting a sub-image of an image.txt
// From an Image
image = createImage(new FilteredImageSource(image.getSource(), new CropImageFilter(x, y, w, h)));
// From a BufferedImage
bufferedImage = bufferedImage.getSubimag
www.eeworm.com/read/127767/14337080
txt e638. getting and setting an image on the system clipboard.txt
// If an image is on the system clipboard, this method returns it;
// otherwise it returns null.
public static Image getClipboard() {
Transferable t = Toolkit.getDefaultToolkit().ge
www.eeworm.com/read/127767/14337151
txt e779. getting the selected items in a jlist component.txt
The following methods return the indices of the selected items:
// To create a list, see e774 Creating a JList Component
// Get the index of all the selected items
int[] selected
www.eeworm.com/read/127767/14337186
txt e199. getting the bytes of a generated key pair.txt
try {
String algorithm = "DSA"; // or RSA, DH, etc.
// Generate a 1024-bit Digital Signature Algorithm (DSA) key pair
KeyPairGenerator keyGen = KeyPairGenerator.getIn
www.eeworm.com/read/127767/14337322
txt e252. getting data from a result set.txt
A result set contains the results of a SQL query. The results are kept in a set of rows, one of which is designated the current row. A row must be made current before data can be retrieved from it. Th
www.eeworm.com/read/127767/14337440
txt e251. getting rows from a database table.txt
A SQL SELECT query is used to get data from a table. The results of the select query is called a result set. This example executes a SQL SELECT query and creates a result set. See also e252 Getting Da
www.eeworm.com/read/127767/14337483
txt e567. getting all created frames in an application.txt
// Retrieve all active frames
Frame[] frames = Frame.getFrames();
for (int i=0; i