代码搜索:Creating
找到约 10,000 项符合「Creating」的源代码
代码结果 10,000
www.eeworm.com/read/127767/14336975
txt e786. creating a jspinner component.txt
This example demonstrates how to build three kinds of spinners. A number spinner:
// Create a number spinner
JSpinner spinner = new JSpinner();
// Set its value
spinner.setV
www.eeworm.com/read/127767/14336988
txt e355. creating a hash table.txt
A hash table, or map, holds key/value pairs.
// Create a hash table
Map map = new HashMap(); // hash table
map = new TreeMap(); // sorted map
// Add key/value pair
www.eeworm.com/read/127767/14337063
txt e736. creating a borderless window.txt
JWindow window = new JWindow();
// Add component to the window
window.getContentPane().add(component, BorderLayout.CENTER);
// Set initial size
window.setSize(300, 300)
www.eeworm.com/read/127767/14337155
txt e876. creating a jcolorchooser dialog.txt
The following example creates a temporary color chooser dialog and shows it:
Color initialColor = Color.red;
// Show the dialog; this method does not return until the dialog is closed
www.eeworm.com/read/127767/14337199
txt e873. creating and setting a border.txt
There are several types of borders available, each represented by its own class. A border can be created using the class' constructor or using a border factory. The border factory is the typical metho
www.eeworm.com/read/127767/14337253
txt e875. creating a compound border.txt
// border1 is around border2
Border newBorder = BorderFactory.createCompoundBorder(border1, border2);
component.setBorder(newBorder);
www.eeworm.com/read/127767/14337283
txt e823. creating a jsplitpane container.txt
A split pane divides its space between two components. The split pane contains a divider that allows the user to control the amount of space distributed to each component.
// Create a left-right
www.eeworm.com/read/127767/14337326
txt e816. creating a jtoolbar container.txt
A toolbar can be either horizontal or vertical. When the orientation is horizontal, the objects in the toolbar are displayed left-to-right. When the orientation is vertical, the objects in the toolbar
www.eeworm.com/read/127767/14337354
txt e1019. creating a jtree component.txt
This example creates a tree component with a root node and a child of the root node. You build the tree hierarchy by adding nodes to nodes.
DefaultMutableTreeNode root = new DefaultMutableTreeNo
www.eeworm.com/read/127767/14337372
txt e484. creating a directory entry.txt
This example creates an entry in the directory.
try {
// Create attributes to be associated with the new entry
Attributes attrs = new BasicAttributes(true); // case-ignore