1 19 20 package org.netbeans.core; 21 22 import java.awt.datatransfer.*; 23 import java.io.IOException ; 24 import java.util.*; 25 import javax.swing.JComboBox ; 26 import javax.swing.TransferHandler ; 27 import org.netbeans.junit.*; 28 import junit.textui.TestRunner; 29 import org.openide.filesystems.*; 30 import org.openide.loaders.*; 31 import org.openide.modules.ModuleInfo; 32 import org.openide.util.Lookup; 33 import org.openide.util.datatransfer.*; 34 import org.openide.util.datatransfer.ExClipboard; 35 36 40 public class NbClipboardIsUsedByAlreadyInitializedComponentsTest extends NbClipboardIsUsedBySwingComponentsTest { 41 private javax.swing.JTextField field; 42 43 public NbClipboardIsUsedByAlreadyInitializedComponentsTest (String name) { 44 super(name); 45 } 46 47 protected void inMiddleOfSettingUpTheManager() { 48 assertNotNull("There is a manager already", System.getSecurityManager()); 49 field = new javax.swing.JTextField (); 51 TransferHandler.getCopyAction(); 52 TransferHandler.getCutAction(); 53 TransferHandler.getPasteAction(); 54 } 55 56 58 protected javax.swing.JTextField getField () { 59 return field; 60 } 61 62 } 63 | Popular Tags |