Solved

Size Textarea on Win95<>Solaris ??

Posted on 1997-03-27
7
400 Views
Last Modified: 2013-12-05
With Sun's JDK 1.0.2 i can create a textarea with a String with a size > 100 K, the same code fails under Windows 95.  How can i work around this problem ?? (another prove that Java is NOT platform independant !!)
Well i should correct this a little bit :
Making a String of > 200 K is no problem (with Win95 or Solaris), but when i want to put it into a textarea, nothing happens with Win95 and it works fine with Solaris.
So :
String MyString=new String(...);   //assume it has a size >64K
TextArea xx=new TextArea(MyString) //Does NOT load the text in MyString with Win95 bnut works fine with Solaris.

Is this a bug in the awt implementation (it also happens with JDK 1.1) for Win95 ??  And if so, how can i work around it ??
0
Comment
Question by:stoffels
  • 4
  • 2
7 Comments
 
LVL 2

Expert Comment

by:majkl
ID: 1219278
Platform independent IS ! Well more then less.
Problem is in limitations in some ports, like in this case in WINDOW$$. Probably they have limited how many you can store in this class (String). :((
People make it not independent. Idea is too good to be true :(

0
 

Author Comment

by:stoffels
ID: 1219279
Edited text of question
0
 

Author Comment

by:stoffels
ID: 1219280
Adjusted points to 100
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:stoffels
ID: 1219281

0
 
LVL 2

Expert Comment

by:majkl
ID: 1219282
I have followed discussion in news groups and there is limitation of 32K under Wins.
Solutions  ;
Use more String classes to hold all datas.

0
 

Author Comment

by:stoffels
ID: 1219283
Using more Strings is a comment i also had figured out.  The problem is how can i 'insert' those String portions into the textarea object without special interaction from the user.  It is (in my opinion) necessary to catch the scrollbar events from the textarea.  This would have given my a solution which i could work on.
'Using  more string classes to hold all data' is not an answer because a String can hold > 32K data, the textarea doesn't.  Fixing that was the real question !!!
0
 

Accepted Solution

by:
IsaacW earned 50 total points
ID: 1219284
stoffels,

try this:

Textarea t = new Textarea(columns, rows);
String mystring = new String();
mystring = whatever;
t.append(mystring);

hope this helps.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Spring Framework HTTPSession management 1 33
table example 4 29
javap not working 8 43
ejb on wildfly 5 19
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now