Results 1 to 4 of 4
- 05-06-2008, 10:16 PM #1
Member
- Join Date
- May 2008
- Posts
- 10
- Rep Power
- 0
[SOLVED] Text Area new line problem
Hi, I have created an invisible text area to store my submitted details in. when I submit one thing its fine but if I submit two things it replaces the first one that i submitted do u know how I can solve this problem?
This is the code
ThanksJava Code:if(e.getSource() == btnSubmitOrder){ txaSubmittedOrder.setText(txfName.getText ()); txaSubmittedOrder.setText(txaItemSelected.getText ()); txaSubmittedOrder.setBackground(Color.blue); txaSubmittedOrder.setForeground(Color.black); }Last edited by Jay-1.1; 05-07-2008 at 12:46 AM.
- 05-07-2008, 12:32 AM #2
Java Code:txaSubmittedOrder.append(txfName.getText() + "\n");
- 05-07-2008, 12:41 AM #3
Member
- Join Date
- May 2008
- Posts
- 10
- Rep Power
- 0
Thanks for reply got it working thank you
Last edited by Jay-1.1; 05-07-2008 at 01:15 AM.
- 05-07-2008, 04:18 AM #4
Similar Threads
-
Problem in Text Editor
By mustahsan4u in forum New To JavaReplies: 2Last Post: 03-26-2008, 02:34 PM -
Accessing Japanese characters from text area
By princy.mat in forum Advanced JavaReplies: 0Last Post: 03-08-2008, 03:11 PM -
Text Area problem
By mcal in forum New To JavaReplies: 0Last Post: 02-11-2008, 09:42 PM -
Displaying data into text area
By abhiN in forum New To JavaReplies: 1Last Post: 01-22-2008, 10:30 AM -
textfiled and text area to UTF-16?
By Mr tuition in forum AWT / SwingReplies: 0Last Post: 12-04-2007, 12:40 PM


LinkBack URL
About LinkBacks

Bookmarks