Solved

Size Textarea on Win95<>Solaris ??

Posted on 1997-03-27
7
396 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

919 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

14 Experts available now in Live!

Get 1:1 Help Now