• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

AWT textfield behave weird when run using MicroSoft JVM

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am facing a weird problem when using MicroSoft JVM to run my Applet. I have an AWT panel with 4 textfields which is added to a dialog box. Everything goes fine until I enter a decimal value into the textfield and close the dialog box. When i reopen the dialog box the textfield inside the panel with all the decimal digits (entered in the previous step) behaves weird. The decimal values along with the WHITE area inside the textfield moves to the left and hides the digits. When I click inside the textfield it becomes normal. The Panel earlier had gridlayout and I even tried changing it to gridbaylayout and still the problem persist.

NOTE: All Development are pertained to JRE1.1 to compatibility with MS JVM

If any can help me with this it would be a great help. Thanks in advance.



2.jpg
[Thumbnail for 2.jpg]
1.jpg
[Thumbnail for 1.jpg]
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you using AWT and MS JVM? Is it possible for you to switch to Swing and the standard Sun JVM?
 
Akhash Ramamurthy
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:Why are you using AWT and MS JVM? Is it possible for you to switch to Swing and the standard Sun JVM?



As it is the requirement we cant switch to Swing. We are using AWT specifically because we want our product to compatible with both Sun and MS JVM.
 
Sheriff
Posts: 22809
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are using Java 1.1 and Microsoft JVM which are both hopelessly outdated. Java 1.2 has been released in December 1998, over 11 years ago. As for Microsoft JVM,

Wikipedia wrote:Sun Microsystems, the creator of Java, sued Microsoft in October 1997 for incompletely implementing the Java 1.1 standard. [2] In 2001, Microsoft settled the lawsuit with Sun and discontinued its Java implementation.


I doubt that anyone is using Microsoft JVM anymore; It is not included in Windows XP. According to Wikipedia it was added with SP1 but removed again a few months later.

I'd reconsider and drop both the Java 1.1 and Microsoft JVM compatibility requirements; you should move to at least Java 1.4, preferably Java 6.
 
Akhash Ramamurthy
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured out an solution for this problem. Placing the textfield cursor position at 0 (zero) once the "OK" is clicked seems to fix this problem. Here is the code....



Anyways thanks for all your help and efforts.
Akhash
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic