No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I need to input a name in the JMenuItem(employee name) using JOptionPane, I used this statement (JOptionPane.showInputDialog(frame, "Enter Employee Name");) and I try using a string variable but nothings happen. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.FlowLayout; import java.text.MessageFormat; import javax.swing.table.AbstractTableModel; public class Cs extends JFrame implements ActionListener { … |
|
i need to make the Print JMenuItem to open a printdialog box when clicked but i dont know how to make it can u help me pls p.addActionListener(new ActionListener() heres the code can u add the printdialogbox i searched but i cant put it on the program import javax.swing.*; import … |
|
create a console application that compute the area of triangle, and ask the user if he want to repeat the program. but i haved an 8 error saying cannot find symbol in line 19,23,26,27. import java.util.Scanner; public class Area3 { public static void main(String args[]) { Scanner input = new … |