I am looking for a way to put a console output window in a runnable jar file. I looked up a way that would work for me but I also would need to know how to get that into my main file as this one has its own package etc.
package newbuttonthing;
import java.util.Date;
public class clock {
public static void main(String args[]) {
// Instantiate a Date object
Date date = new Date();
// display time and date using toString()
System.out.println(date.toString());
}
}
The window should just have to show up in a little bar (1 line?) at the bottom of the window i will clarify if needed (post my code and indicate where in the window it needs to be).
System.out?System.out), rather than open ended like design me a GUI application with a log window. We're here to help, but you've got to meet us half-way. :)