Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to code a calculator using JFrame through NetBeans IDE. When I run the code it shows build successful but but no GUI display is showing.
Here is the link to the code [link]()[^]

What I have tried:

I made sure I set the set.visible code but it still does not display any calculator. What could be the issue?
Posted
Updated 14-Jan-18 8:16am
v2

1 solution

Quote:
I made sure I set the set.visible code but it still does not display any calculator. What could be the issue?

Your code is wrong? but how to tell without seeing that code?

There is a tool that allow you to see what your code is doing, its name is debugger. It is also a great learning tool because it show you reality and you can see which expectation match reality.
When you don't understand what your code is doing or why it does what it does, the answer is debugger.
Use the debugger to see what your code is doing. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute.

Debugger - Wikipedia, the free encyclopedia[^]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html[^]
https://www.jetbrains.com/idea/help/debugging-your-first-java-application.html[^]
The debugger is here to show you what your code is doing and your task is to compare with what it should do.
There is no magic in the debugger, it don't find bugs, it just help you to. When the code don't do what is expected, you are close to a bug.
 
Share this answer
 
Comments
Member 13622474 14-Jan-18 14:20pm    
Thankyou for your reply!
I have put the link on my post. Kindly please have a look.
wseng 14-Jan-18 22:41pm    
There are no code/logic in main function

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900