command line - Is it possible to force the resolution of a window created by a java ".jar" file? -
i've got application .jar
provided outside source launches gui. unfortunately original developers did not consider possibility on laptop has maximum resolution of 1366x768. default, window tall , runs off top , bottom of screen (centered).
the program wrapped small .exe
, i'm wondering if say:
java -jar *.jar width=x height=y
or
*.exe --width x --height y
or something?
in java, there 2 kinds of parameters:
program parameters: program coded search parameters , react accordingly. of course, there no "standard" values, work if programmer did thinking of checking "width" parameter , decided use resize windows
vm parameters, passed jvm , not program. again dependent of vm implementation, have never seen parameter limits size of window (and if there one, result exception fail when tried open window big). example: http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html
additionally, fixed size gui considered bad design (for reasons have noticed) , odds are, if modify application (v.g., decompiling it), changing size of windows lead other issues (like controls being outside window, or window getting disorganized).
note: since comment states resizing window allow displayed nicely, maybe doable decompile code , recompile more flexible settings. also, unzip .jar , search if lucky enough size defined in .properties file (which plain text).
Comments
Post a Comment