1. Copy text from a disabled JTextField stackoverflow.comIs it possible to allow a user to copy text from within a disabled JTextField? At the moment if I have a text field that is disabled, the user is ... |
2. Copying into JTextField from Excel coderanch.comHi, I am working on a Swing application which allows the user the flexibility to copy data from an Excel spreadsheet and paste it into a set of JTextfields. The code looks something like this: public void actionPerformed(ActionEvent e) { if (e.getSource() instanceof JTextField) { // System.out.println("FormItem.getExcelPasteAction().actionPerformed(): "); JTextField tf = (JTextField) e.getSource(); try { java.awt.datatransfer.Transferable tr = java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); if (tr ... |
3. Able to Copy Text from Text Boxes(JTextfields) in Linux/Solaris coderanch.comHi please any one can help me on this, I have JTextfields in my application, i have overrided the JTextfield copy method using public void copy(); Jtextfield.setHighlighter(null); So i am not able to copy text from JTextfield to other text editor in windows. In Linux/Solaris MouseDrag on Jtextfield data and paste in text editor also not able to paste data but ... |
4. Copy text in auto created TextField java-forums.orgI've tried to do like you sad. Hope that I've done it right. I know that I need reference to jTextField1, but it's creating after compilation so I don't know the name of component that I need to do reference to. :( If it's done like the way it's done below - text is copying only from the last tab. Java ... |
5. Help!! Copy JTextField to clipboard! java-forums.org:confused: Hi, Making great progress on my Colour Picker, just wondering how i can copy my final hex value using a JButton, so the user will be able to paste it into another program. I have the GUI set out with the button etc, just a bit stuck on the code in which i use to copy the JTextField VIA the ... |