usr/src/java/vpanels/panels/coreadm/org/opensolaris/os/vp/panels/coreadm/client/swing/path/PathField.java
equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
24 * Use is subject to license terms. |
|
25 */ |
24 */ |
26 |
25 |
27 package org.opensolaris.os.vp.panels.coreadm.client.swing.path; |
26 package org.opensolaris.os.vp.panels.coreadm.client.swing.path; |
28 |
27 |
29 import java.awt.*; |
28 import java.awt.*; |
106 |
105 |
107 // XXX - Test, remove |
106 // XXX - Test, remove |
108 public static void main(String args[]) { |
107 public static void main(String args[]) { |
109 final PathField textPane = new PathField(); |
108 final PathField textPane = new PathField(); |
110 // textPane.setFont(new Font("Serif", Font.ITALIC, 36)); |
109 // textPane.setFont(new Font("Serif", Font.ITALIC, 36)); |
111 StringBuffer buffer = new StringBuffer(); |
110 StringBuilder buffer = new StringBuilder(); |
112 for (String token : PathDocument.TOKENS) { |
111 for (String token : PathDocument.TOKENS) { |
113 buffer.append(token).append('/'); |
112 buffer.append(token).append('/'); |
114 } |
113 } |
115 textPane.setText(buffer.toString()); |
114 textPane.setText(buffer.toString()); |
116 |
115 |