D. Ogranos wrote:If you don't specify an absolute path then the file is searched in the current directory. Example, if your .jar file is located in testdir1/testdir2, and you run java from testdir1 as current dir, then the file won't be found. If you "cd" to testdir2, and then run the program, the file will be found.
As a solution, you could try to put the location of the file into an environment variable, and access that with System.getenv(). Perhaps there are better solutions tho.
santhosh varala kumar wrote:It varies with system. basically it is system look and feel.
Basically we should UImanager tosetup as to use either systemlook& feel or cross platform look and fool.
If we want same font on all over platforms, the we need to explicitly use to set the font for the components. so the component should same font irrespective of the platform.
Ulf Dittmer wrote:You shouldn't expect Swing GUIs to be identical pixel-by-pixel across platforms. That means using absolute sizes (in pixels) doesn't work. But if you call "pack()" after layout the components, then none should be invisible, provided the top-level container is large enough.
Maneesh Godbole wrote:Moving to a more appropriate forum.