I'm still quite new to Java, but a lot of the time I experience this error. For example, the compiler throws an error in the main() method in this program. Usually I get around it by changing all methods and variables to static but there must be another way?
package convertor;
import java.io.*;
import java.util.*;
import java.awt.*;
import javax.swing.*;
public class Main {
private JFrame mainwindow;
private JButton gobutton;
private JTextField input;
public Main() {
}
public void drawgui() {
}
public static void main(String[] args) {
drawgui();
}
}