Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008, 11:16 PM
Member
 
Join Date: May 2008
Posts: 10
Jay-1.1 is on a distinguished road
Text Area new line problem in Java
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

Code:
if(e.getSource() == btnSubmitOrder){ txaSubmittedOrder.setText(txfName.getText ()); txaSubmittedOrder.setText(txaItemSelected.getText ()); txaSubmittedOrder.setBackground(Color.blue); txaSubmittedOrder.setForeground(Color.black); }
Thanks

Last edited by Jay-1.1 : 05-07-2008 at 01:46 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-07-2008, 01:32 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,146
hardwired is on a distinguished road
Code:
txaSubmittedOrder.append(txfName.getText() + "\n");
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 01:41 AM
Member
 
Join Date: May 2008
Posts: 10
Jay-1.1 is on a distinguished road
Thanks for reply got it working thank you

Last edited by Jay-1.1 : 05-07-2008 at 02:15 AM.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-07-2008, 05:18 AM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 526
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Mark this thread as solved and add rep to hardwired.
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Text Editor mustahsan4u New To Java 2 03-26-2008 03:34 PM
Accessing Japanese characters from text area princy.mat Advanced Java 0 03-08-2008 04:11 PM
Text Area problem mcal New To Java 0 02-11-2008 10:42 PM
Displaying data into text area abhiN New To Java 1 01-22-2008 11:30 AM
textfiled and text area to UTF-16? Mr tuition AWT / Swing 0 12-04-2007 01:40 PM


All times are GMT +3. The time now is 01:09 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org