thanks. but how do I do square root and percentage maths on this?
Type: Posts; User: gopster01
thanks. but how do I do square root and percentage maths on this?
here is the code I wrote:
import javax.swing.*;
import java.awt.MenuBar;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class NewCalculator implements...
i have used a null layout because according to about.com, using null will allow me to lay the contents manually.
package name;
//swing library found in javax called to use the graphical contents.
import javax.swing.*;
//creating the contents for the calculator
public class calc {
JButton btn1= new...
this is the code used to make the calculator work, I have not fully finished it yet. I'm am new to Java programming (at beginners level).
//listen to action from the buttons
import...
what do you mean 'XYZ of NORTH'? do you means the XYZ coordinates?
--- Update ---
i don't get the third part, could you explain that more clearly, plz.
--- Update ---
//to assign
import...
it does not work, will you be able to show me a code to write and try. Cos I tried your method as how I understood it and it did not seem to work.
import javax.swing.*;
//lays out a grid by row...
i tried adding another JFrame for the textbox but that did not work. because i seem to only make one visible with JFrame and not both.
import javax.swing.*;
//lays out a grid by row and column....
import javax.swing.*;
//lays out a grid by row and column....
import javax.swing.*;
//lays out a grid by row and column....
2590
i just need to insert the textbox at the top but I do not know how to. plz help
2589
this is how the calculator should look like
how do i change the pl.add("center",pl) to cos if i remove it then the buttons and components in the calculator is positioned incorrectly.
I am coding a simple calculator in Eclipse version 4.3.1 and I get this message when I run the program:
Exception in thread "main" java.lang.IllegalArgumentException: adding container's parent to...