Solved

Size Textarea on Win95<>Solaris ??

Posted on 1997-03-27
7
403 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
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 …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

821 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