Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Screen doen not render the same on all computers

 
Kathy Doto
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Three people running the same application from different computers. We have the same java runtime 1.4.0, same operating system, same executable. The application is called from a menu. When one computer calls the application, the screen is not rendered properly on the screen. The user has to click above the actual buttons to get them to work, for example. The screen appears inactive because you can click directly in a radio button. One slit on the side of the frame picks up part of the background also. If the program is run directly from the jar file on this machine, it works properly.
When it is run on the other two computers from the menu, there are no such problems, and it runs normally.
 
Kathy Doto
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After some experimenting, it was found that set resizable in jbinit could not be set to false. Then it would work on all computers. Could this be some ordering issue in the code, since some applications could set resizable to false and still work on all computers. Have not found the problem yet.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You said -


The application is called from a menu.


and


If the program is run directly from the jar file on this machine, it works properly.


This leads me to believe that whatever application that is launching your application from the menuitem is configured differently (or is a different version, bad install, otherwise different, etc.) on the machine that is having the problem. I'm not sure what would cause the problem you describe, but the parent application is at fault if the application runs fine standalone. Is the parent application setting any system properties or anything that would cause your application to do this? I'd add some lines to print out things like the current system properties and anything else important at the start of your application and see if anything was different on the computer having problems.
 
Kathy Doto
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the advice, but I found a solution that worked. I took the autocenter of the frame out of main and set it from the IDE. I also took the pack() call out of main and put it in the constructor of the main class. After doing this, the app worked from the problem computer, although I still do not know why it worked on some computers without doing this. On the other computers the frame came up centered and without any visible problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!