(Solved):Modify the code to make the student.java class act graphically View Answer…

 

Question

Code:

app.java public class app { public static void main(String args) { myJFrame mjf = new myJFrame(); } }

myJFrame.java import java.awt.*; import javax.swing.*; public class myJFrame extends JFrame { myJPanelstd mjp; public myJFrame () { super (“My First Frame”); mjp = new myJPanelstd(); getContentPane().setLayout(new BorderLayout()); getContentPane().add(mjp,”Center”); setDefaultCloseOperation(EXIT_ON_CLOSE); setSize (640, 480); setVisible(true); } } myJPanelstd.java import java.awt.*; import javax.swing.*;

public class myJPanelstd extends JPanel { public myJPanelstd() { super(); setBackground(Color.pink); JButton jb1; jb1

Scroll to top