代码搜索:Creating
找到约 10,000 项符合「Creating」的源代码
代码结果 10,000
www.eeworm.com/read/127767/14335942
txt e147. creating a client socket.txt
// Create a socket without a timeout
try {
InetAddress addr = InetAddress.getByName("java.sun.com");
int port = 80;
// This constructor will block until the conne
www.eeworm.com/read/127767/14335953
txt e810. creating a popup menu.txt
final JPopupMenu menu = new JPopupMenu();
// Create and add a menu item
JMenuItem item = new JMenuItem("Item Label");
item.addActionListener(actionListener);
menu.add(item);
www.eeworm.com/read/127767/14336007
txt e333. creating a custom event.txt
A new custom event must extends EventObject. Moreover, an event listener interface must be declared to allow objects to receive the new custom event. All listeners must extend from EventListener.
Th
www.eeworm.com/read/127767/14336042
txt e828. creating a jtabbedpane container.txt
A tabbed pane is a container that displays only one child component at a time. Typically, the children are themselves containers of other components. Each child is associated with a visible tab on the
www.eeworm.com/read/127767/14336048
txt e358. creating a sorted set.txt
A sorted set is a set that maintains its items in a sorted order. Inserts and retrievals are more expensive in a sorted set but iterations over the set is always in order.
See also e352 Creating a S
www.eeworm.com/read/127767/14336064
txt e774. creating a jlist component.txt
By default, a list allows more than one item to be selected. Also, the selected items need not be contiguous. To change this default, see e781 Setting the Selection Mode of a JList Component.
A list
www.eeworm.com/read/127767/14336108
txt e229. creating a certification path.txt
This example demonstrates how to create a CertPath object from an list of certificates.
// The CA's certificate should be the last element in the array
public static CertPath createCertPath
www.eeworm.com/read/127767/14336131
txt e982. creating a jtextarea component.txt
// Create a text area with some initial text
JTextArea textarea = new JTextArea("Initial Text");
// Create a text area with some initial text and a default number of rows and columns.
www.eeworm.com/read/127767/14336160
txt e347. creating a copy of a collection.txt
These examples create a shallow copy of a collection. That is, the new collection contains references to same objects as the source collection; the objects are not cloned.
List stuff = Arrays.as
www.eeworm.com/read/127767/14336220
txt e756. creating a jcombobox component.txt
// Create a read-only combobox
String[] items = {"item1", "item2"};
JComboBox readOnlyCB = new JComboBox(items);
By default, a combobox only allows the user to select from a predefined li