代码搜索:Getting
找到约 2,749 项符合「Getting」的源代码
代码结果 2,749
www.eeworm.com/read/127767/14336854
txt e270. getting the cursor position in a scrollable result set.txt
try {
// Create a scrollable result set
Statement stmt = connection.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet r
www.eeworm.com/read/127767/14336874
txt e490. getting an object's schema from the directory.txt
This example reads an object's schema from the directory.
try {
// Get context containing class definitions for cn=Ted Geisel entry
DirContext tedClasses = ctx.getSchemaClassDe
www.eeworm.com/read/127767/14336898
txt e256. getting blob data from a database table.txt
A BLOB is a reference to data in a database. This example demonstrates how to retrieves bytes from a BLOB.
try {
Statement stmt = connection.createStatement();
ResultSet rs = s
www.eeworm.com/read/127767/14337039
txt e437. getting the indices of a matching group in a regular expression.txt
For more information about groups, see e436 Capturing Text in a Group in a Regular Expression.
CharSequence inputStr = "abbabcd";
String patternStr = "(a(b*))+(c*)";
// Compile a
www.eeworm.com/read/127767/14337049
txt e757. getting and setting the selected item in a jcombobox component.txt
// Create a read-only combobox
String[] items = {"item1", "item2"};
JComboBox cb = new JComboBox(items);
// Get current value
Object obj = cb.getSelectedItem(); // item1
www.eeworm.com/read/127767/14337054
txt e491. getting an attribute's schema from the directory.txt
This example reads an attribute's schema from the directory.
try {
// Get an attribute of that type
Attributes attrs = ctx.getAttributes("cn=Ted Geisel, ou=People", new String[
www.eeworm.com/read/127767/14337100
txt e877. getting and setting the selected color in a jcolorchooser dialog.txt
Normally, the color is retrieved from a color chooser dialog when the dialog is closed. See e884 Listening for OK and Cancel Events in a JColorChooser Dialog for an example of how to determine when th
www.eeworm.com/read/127767/14337147
txt e026. getting and setting the modification time of a file or directory.txt
This example gets the last modified time of a file or directory and then sets it to the current time.
File file = new File("filename");
// Get the last modified time
long modifie
www.eeworm.com/read/127767/14337163
txt e289. getting the maximum table name length in a database.txt
This example gets the maximum number of characters allowed in a table name.
try {
// Gets database metadata
DatabaseMetaData dbmd = connection.getMetaData();
//
www.eeworm.com/read/127767/14337167
txt e891. getting and setting the current directory of a jfilechooser dialog.txt
JFileChooser chooser = new JFileChooser();
try {
// Create a File object containing the canonical path of the
// desired directory
File f = new File(new File(".")