Solved

Size Textarea on Win95<>Solaris ??

Posted on 1997-03-27
7
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

707 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