Solved

Size Textarea on Win95<>Solaris ??

Posted on 1997-03-27
7
389 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.

759 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

21 Experts available now in Live!

Get 1:1 Help Now