save Button « Button « Java Swing Q&A





1. Creating a 'Save' button    coderanch.com

Then your next step should be to describe in what way it doesn't work. For example, does your code not compile? Or does it throw exceptions when you run it? Or does it do something different than what you expected it to do? Quoting error messages, if any, would be helpful too. And explaining what you expected it to do would ...

2. Save button not working ,,,,,    java-forums.org

Java Code: import java.awt.*; import java.awt.event.*; import javax .swing.*; import java.io.*; public class SavePatient extends JFrame implements ActionListener { private JLabel Name,MRN,Address,Age,Admission,Wardname,Wardnumber; private JTextField name,mrn,address,age,admission,wardname,wardnumber; private JButton Save; public static void main(String args[]) { FindPatient app = new FindPatient(); } public SavePatient() //constructor { super("Event Handling"); Container c = getContentPane(); c.setLayout(new FlowLayout()); Name = new JLabel("Patient Name"); c.add(Name); name = new ...

3. Save button not working    java-forums.org

I meant to say that the back button was not working Java Code: import java.awt.*; import java.awt.event.*; import javax .swing.*; import java.io.*; import java.awt.event.ActionEvent; import java.util.StringTokenizer; public class FindPatient extends JFrame implements ActionListener { private JLabel Name,MRN,Address,Age,Admission,Wardname,Wardnumber,Blank1,Blank2,Blank3,Blank4,Blank5;// declares the labels,the blank labels are used for spaces in the layout private JTextField name,mrn,address,age,admission,wardname,wardnumber;//declares the text fields private JButton Search,Back;// declares the buttons ...