|Apr 29, 2013, 01:18 AM||#1|
Any of you good at java? I have a quick question
My code wont compile. The error is in the main method. Every time i try to call hr and m to get the randomly generated time to compare with the user time, it gives me the red error line.
Am i not linking the class to the Main method right?
Last edited by Halamire; Apr 29, 2013 at 09:24 PM. Reason: Thanks!
|Apr 29, 2013, 10:16 AM||#3|
I think you accidentally forgot to create the variable "s". You could change
private static final SwingCanvas SwingCanvas = null;
private static SwingCanvas s = null;
s = new SwingCanvas(); setContentPane(s);
Hope this helps,
Tunesify - Simply the easiest way to convert audio.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Some apps prompt to install Java 6 even when Java 7 is installed||MacMan988||OS X Mavericks (10.9)||1||Apr 18, 2014 07:56 AM|
|Java 6 or Java 7 for OSX Mavericks for your Macbook Pro?||Starfyre||MacBook Pro||3||Dec 22, 2013 03:49 PM|
|Java 6.x security risk (?) vs Java 7.x and broken apps w/ v7.x installs?||mgiamo||Mac Basics and Help||1||Dec 15, 2013 03:48 PM|
|Chrome on OS X -- Java plugin / Java 7 vs Java 6 Issue||booyahbooyah||Mac Applications and Mac App Store||4||May 31, 2013 09:13 AM|
|Installed Java 7.07 but doesn't show up in Java preferences?||-mattias-||OS X 10.8 Mountain Lion||21||Aug 31, 2012 04:49 PM|
All times are GMT -5. The time now is 10:16 PM.