I am new to Java, and I am working on a program that functions as a calculator. I have the code for the calculator written, but I need to make a GUI for it, because as of now the only way I can see output is by running it within Netbeans. I was wondering how a GUI is integrated into a program. Is it instantiated in the main class? Also, any sample programs that use a GUI, but are very simple -- such as 100 lines or less, not counting the GUI's code. That can be longer.-- would be appreciated.

Thanks.

cela0811

P.S. This might help. Here is the project.

For examples of GUI, do a Search for java files that extend the JFrame class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.