Results 1 to 3 of 3
- 05-19-2008, 08:03 AM #1
Member
- Join Date
- May 2008
- Posts
- 9
- Rep Power
- 0
[SOLVED] Creating List of Values Using ClipBoard Object
Hey, little problem I am trying to solve.
I have a bunch of checkboxes and some ComboBoxes which the user selects in my application, all the necessary information i need gets passed into a variable, then when the user presses a button, that info gets put into a TextArea. Basically all I need is for every time the user pushes the button, the information from the variable gets put into the TextArea again, and since the info in the variable changes when the user selects different options, it will create a list of different selections.
I am using a system clipboard object, but I can't seem to make it add the value to the TextArea, not just replace the old value.
(BTW I am very begginer Java programer)Last edited by Judoon_Platoon; 05-19-2008 at 08:09 AM.
- 05-20-2008, 10:43 PM #2
The Clipboard is used for data transfer; mostly cut, copy and paste operations. There's no need to use it for what you are describing.
Java Code:JTextArea textArea; // ActionListener for your JButton public void actionPerformed(ActionEvent e) { // get the selection state of all of your checkBoxes and comboBoxes // make up a string with the desired info textArea.setText(yourString); // or if you want to preserve previous entries textArea.append(yourString); }
- 05-21-2008, 08:07 AM #3
Member
- Join Date
- May 2008
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
Creating a Comparable object
By Java Tip in forum java.langReplies: 0Last Post: 04-15-2008, 07:38 PM -
List views, a type of object
By Leprechaun in forum New To JavaReplies: 2Last Post: 02-06-2008, 03:07 AM -
Getting values of an Option List
By mutuah in forum Advanced JavaReplies: 0Last Post: 08-07-2007, 03:42 AM -
how to remove an object from the array list
By cecily in forum New To JavaReplies: 3Last Post: 08-02-2007, 02:26 PM -
Creating object of Type Object class
By venkatv in forum New To JavaReplies: 3Last Post: 07-17-2007, 03:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks