1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
almond37 [142]
4 years ago
11

Creating a Graphical User Interface in Java

Computers and Technology
1 answer:
tankabanditka [31]4 years ago
4 0

Answer:

JPanel PayrollPanel=new JPanel();

JButton saveButton=new JButton("Save");

A full code snippet and screen shot is provided in the explanation section

Explanation:

import java.awt.*;

import javax.swing.*;

public class TestClass {

   TestClass()  {

       JFrame f= new JFrame("Payroll Panel");

       JPanel payrollPanel=new JPanel();

       payrollPanel.setBounds(10,20,200,200);

       payrollPanel.setBackground(Color.gray);

       JButton saveButton=new JButton("Save");

       saveButton.setBounds(50,100,80,30);

       saveButton.setBackground(Color.yellow);

       payrollPanel.add(saveButton);

       f.add(payrollPanel);

       f.setSize(400,400);

       f.setLayout(null);

       f.setVisible(true);

   }

   public static void main(String args[]) {

       new TestClass();

   }

}

You might be interested in
The         provides access to the Internet; may also be internal
grin007 [14]
The TCP/IP protocol provides access to internally and externally I.e. The internet.
3 0
4 years ago
You choose Option A for Overdraft Options. What would happen if you had $30 in your checking account and you tried to take out $
Serga [27]

The overdraft transaction will be successful and $45 will be paid at the grocery store but there will be an overdraft charges in addition to $15.

Overdraft is a privilege granted to checking account holder which good credit record.

  • Overdraft privilege allows payment for transaction even though there's not enough funds in the bank account to fully cover the transaction.

  • An Overdraft Fees will be charged for the service provided by the bank in addition to the amount provided to the bank-holder.

In conclusion, the payment at the grocery store will be successful but the account will be in negative of $15 and an overdraft fee will be charged by the bank as well.

Read more on Overdraft here

<em>brainly.com/question/17154998</em>

6 0
3 years ago
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Mice21 [21]

Answer:free points

Explanation:

7 0
3 years ago
Read 2 more answers
How can I get a refund of my money back
irakobra [83]

Say you got a dress from Macys but you dont like or it doesnt fit whitin 30 days usally you can take it back(with receipt . Most of the time you must show whoever you want the refund from a receipt.

4 0
4 years ago
Read 2 more answers
Need help with this
Kryger [21]

Answer:

i say B

Explanation:

because u being professional makes ur company look good

7 0
3 years ago
Other questions:
  • A small company connects data acquisition equipment to the serial port of a computer. The equipment user has reported that not a
    8·1 answer
  • 6:57 47minutes before
    15·2 answers
  • What does CMOS stand for?
    15·2 answers
  • While ________ is centered on creating procedures, ________ is centered on creating objects. Procedural programming, class progr
    10·1 answer
  • Basic engine operation can be divided into four stages. These stages are
    13·1 answer
  • Command icons under the following file tab in its function
    14·1 answer
  • Your friend sees an error message during Windows startup about a corrupted bootmgr file. He has another computer with a matching
    12·1 answer
  • In Windows, the log that stores events from a single application or component rather than events that might have system wide imp
    14·1 answer
  • Sensory cues are used for script writers to be able to get more creative with the story their are scripting for (i.e.
    15·1 answer
  • Wassup anybody tryna play 2k
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!