Question: can someone help me create a GUI that has one text area, two checkboxes, a group of radio buttons, and a submit button. This is

can someone help me create a GUI that has one text area, two checkboxes, a group of radio buttons, and a submit button.

This is all I got so far.

import javax.swing.*; import javax.swing.JFrame; import java.awt.*; import java.util.Vector; public class GUIsPop extends JFrame { public GUIsPop() { super("AMC Snack Bar"); JRadioButton option1 = new JRadioButton("Popcorn"); JRadioButton option2 = new JRadioButton("Weiners"); JRadioButton option3 = new JRadioButton("Cokes"); ButtonGroup group = new ButtonGroup(); group.add(option1); group.add(option2); group.add(option3); setLayout(new FlowLayout()); add(option1); add(option2); add(option3); pack(); } private class GuisPop extends JFrame{ public void GUIsPop(String title, int width, int height) { JPanel panel = new JPanel(); Dimension frame = null; setLayout(new FlowLayout()); add(new GUIsPop()); }//End constructor private void setFrame(int width, int height) { setSize(width, height); Dimension frame = null; frame.setSize(420, 270); setLocationRelativeTo(null); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void display() { setVisible(true); }//End display } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { new GUIsPop().setVisible(true); } }); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!