import java.awt.*; import import javax.swing.*; java.awt.event.*; public class ButtonPanel extends JPanel { } private in

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

import java.awt.*; import import javax.swing.*; java.awt.event.*; public class ButtonPanel extends JPanel { } private in

Post by answerhappygod »

Import Java Awt Import Import Javax Swing Java Awt Event Public Class Buttonpanel Extends Jpanel Private In 1
Import Java Awt Import Import Javax Swing Java Awt Event Public Class Buttonpanel Extends Jpanel Private In 1 (71.52 KiB) Viewed 34 times
Import Java Awt Import Import Javax Swing Java Awt Event Public Class Buttonpanel Extends Jpanel Private In 2
Import Java Awt Import Import Javax Swing Java Awt Event Public Class Buttonpanel Extends Jpanel Private In 2 (28.71 KiB) Viewed 34 times
Can someone help me explaining which one I got wrong please,thank you will rate
import java.awt.*; import import javax.swing.*; java.awt.event.*; public class ButtonPanel extends JPanel { } private int count; private JButton btn_push; private JLabel lbl_label; private JTextField txt_text; public ButtonPanel () count = 0; txt_text= new JButton(); txt_text.setPreferredSize(new btn_push = new JLabel ("Push Me!"); btn_push.addActionListener (new ButtonListener()); lbl_label= new JLabel(); Ibl_label.setPreferredSize(new Dimension (100,20)); add (lbl_label); add (btn_push); add (txt_text); Dimension (100,20)); setBackground (Color.cyan); setPreferredSize (new Dimension (300, 40)); } private class ButtonListener implements ActionListener { public void action Performed (ActionEvent event) { count++; Ibl_label.setText(txt_text.nextLine());
Answer 1: JPanel Answer 2: JButton Answer 3: JLabel Answer 4: ActionListener Answer 5: actionPerformed Answer 6: nextLine
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply