you can get os type by getting these values:
Tag: java
Programming
java jar gui without commandshell
by Mike • • 0 Comments
instead of java -jar project.jar somejarparamter use javaw -jar project.jar somejarparamter you can use a link instead of a batch. just add the directory to the jar file where its located and same directory into the “working directory” option of the link to “convert” it to an exe(cutable) file use JMadex
Programming
mdi windows / frames in java
by Mike • • 0 Comments
double click into source to “convert” it to text, and Ctrl-A, Ctrl-C to copy whole “file” content at once miglayout libary (to reduce search time 😉 ) miglayout15-swing just rename the extionsion from .zip to .jar
Programming
date comparison – date 2 long – long 2 date – do something after x-min
by Mike • • 0 Comments
Programming
Exception Handling in Java
by Mike • • 0 Comments
public void FunctionName() throws Exception{ throw new Exception(); } throws gibt exception an die aufrufende funktion weiter UnexpectedException = unerwartete Exception Abfangen auch innerhalb der verarbeitung moeglich: try{ throw new UnexpectedException(); }catch(UnexpectedException ex){ ex.PrintStackTrace(); } Unexpected nur mit Try-Catch möglich!
Programming
Mail Handle in Java
by Mike • • 0 Comments
javamail api:Â https://java.net/projects/javamail/pages/Home