That should not happen. mine worked as it is. It hasd to work as java is platform independent. Ofcourse, if your layout manager are not proper, then because of different resolution on different OS setting etc, u may get different result. What is your layout like ? how many panels are on outermost window (frame)? is your appliication is working while resizing it ? check all that first. i think u can find your mistake.
Your components might be misplaced because of different screen resolution of your Sun terminal. This happened to me when I was using awt layouts and tested my client with different resolutions. It has nothing to do with Solaris though. P.S. I am using Swing's BoxLayout where possible, it's more rigid in terms of component location.
Joined: Jun 19, 2001
Thank you all for your replies. Gennady, I too am using swing BorderLayout and GrigBagLayout. I am not using AWT layouts. Arvind, do you know how to find out what is the hot key combination on unix ? thanks
Joined: Nov 28, 2001
Hi Rasika, I did not try to make the HOT key combinations work in UNIX. I submitted the assignment as is it. Not worth the effort, I guess. As long as the project works fine with all the functionality, it is fine. -Arvind
Joined: Sep 25, 2001
Rasika, your layouts are in fact provided by java.awt package and they are "older"-style layouts. The problem with them is that almost impossible to cleanly layout components with strictly defined horizontal and vertical gaps between them (as Sun's Java L&F Guidelines suggest), plus these layouts are very violent when it comes to resizing windows -- they move components at their discretion. The BoxLayout is preffered Swing layout, it can be much more rigid and you have more control over how to place and space components. [This message has been edited by Gennady Shapiro (edited November 28, 2001).]
I have experienced similar problems such as this when using GridBagLayout in some GUIs I have developed on different projects I have worked on. I finally stopped using it because it was so difficult to bebug on all the different platforms. Now I stick to using javax.swing.JPanel with GridLayout, BoxLayout, and BorderLayout. These seem to live up to the promise of platform independance. -Peter Crowley
-Peter Crowley,<BR>who is looking for work in North Florida
<pre> what are hot key combinations ? anybody please. thanx in anticipation </pre>
Joined: Nov 06, 2001
Originally posted by nitin kanaskar: what are hot key combinations ?
Using hot keys an pnemonics are, IMHO, way too complicated for this project. They are not part of the requirements and tend to make your GUI much too complicated, thereby actually costing you points. Hot Keys are keyboard strokes that are mapped to Gui Components. For example your browser probably has a menu with "File" or "Edit". If you press ALT-F, it will do the same thing as selecting "File" from the menu. This is a hot key. -Peter Crowley