Since main method in java is most popular method among all beginners and
they try to put program code there they face "non-static variable cannot be referenced from a static context"
compiler error when they try to access a non static member variable inside main in Java which is static.
Please take a look at this article
Why non-static variable cannot be referenced from a static context?
In your case you have to make the OpenFile of = new OpenFile();
instantiation to be static like as shown below in order to access that in main method which is a static method.
static OpenFile of = new OpenFile(); // should be static for accessing within main method
public static void main(String[] args) {
of.createFile();
intro();
createAndShowRibbon();
createAndShowNormalUI();
}