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
Studentka2010 [4]
3 years ago
13

How to make a Java GUI application? Discuss each step needed.

Computers and Technology
1 answer:
bonufazy [111]3 years ago
5 0

Explanation:

Create a JFrame container

1- In the Projects window, right-click the NumberAddition node and choose New > Other .

2- In the New File dialog box, choose the Swing GUI Forms category and the JFrame Form file type. Click Next.

3- Enter NumberAdditionUI as the class name.

4- Enter my. numberaddition as the package.

5- Click Finish.

You might be interested in
Unlike the _____ presentations of the other students in class, Calum's presentation demonstrated a thorough and mature grasp of
finlep [7]

Answer:

immature

Explanation:

3 0
4 years ago
Most job applications are online. true or false
Sonja [21]

Answer:

True

Explanation:

4 0
3 years ago
What is output? c = 1 sum = 0 while (c < 10): c = c + 3 sum = sum + c print (sum)
Valentin [98]

Answer:

21

Explanation:

The values of c that make it into the loop are 1, 4, 7.

The values that are added to sum are 3 higher, i.e., 4,7 and 10.

The sum of those is 21.

p.s. why did you not run the program yourself?

3 0
3 years ago
What text results in variable whitespace?<br><br> [blank] text results in even whitespace.
alexdok [17]

Answer:

In almost all the windows applications that handle the text, like in Microsoft word, you can make use of the ASCII code for inserting the blank character or the non-breaking space. This can be done by pressing the Alt and then typing 255 from the numeric keypad, and finally releasing the ALT key. And please keep in mind that this will not work if you will be using the ordinary number key.

For even whitespace you need to use the spacebar and check the character count with whitespaces to be even.

Explanation:

Please check the answer section.

8 0
3 years ago
Write a program that reads in ten numbers and displays the number of distinct numbers and the distinct numbers separated by exac
ELEN [110]

Answer:

The program to this question can be given as:

Program:

//import package.

import java.util.*;

public class Main //defining the class

{

public static void main(String[] args) //defining main method  

{

 Scanner ob = new Scanner(System.in); //creating scanner class object.

 int[] a = new int[10];//define array.  

 int number,counts= 0,i;//define variable.

 System.out.print("Enter numbers: "); //message.

 for (i = 0; i < 10; i++) //loop  

 {

  number=ob.nextInt();

  if (isDistinct(a,number))

  {

      a[counts] = number;//assign value in array

      counts++; // Increment count

  }

 }

 System.out.println("The distinct numbers is :" + counts);

 System.out.print("The distinct number are :");

 for (i = 0; i <a.length; i++)//loop

 {

  if (a[i] > 0)

  {

   System.out.print(" " +a[i]);//print array.    

  }

   

 }

 System.out.println();

}

public static boolean isDistinct(int[] array, int num)//defining method  

{

 for (int i = 0; i < array.length; i++)//loop for check number  

 {

  if (num == array[i]) //check condition

  {

      return false; //return value false.

  }

 }

 return true; //return value true

}

}

Output:

First time run:  

Enter ten numbers: 1 2 3 4 5 6 7 8 9 10

The number of distinct numbers is 10

The distinct numbers are 1 2 3 4 5 6 7 8 9 10

Second time run:

Enter numbers: 2 3 5 8 7 4 3 2 1 2

The distinct numbers is :7

The distinct number are : 2 3 5 8 7 4 1

Explanation:

The description of the above java code can be given as:

  • In the above java code, a class is defined that is main inside a class-main function is defined in the main function firstly creating a scanner class object that is "ob" then define variables and array that are number, counts and a[].
  • To inserts array elements we use a loop. In the loop, we use integer variable number and define a condition in if block passes a function that check value count total value.
  • In the second loop, we check the condition that array elements value is greater than 0 and print all array elements.
  • The isDistinct function checks in the array two values are not the same. if the values are the same it will return false value because this function is the boolean type that returns an only boolean value.
6 0
3 years ago
Other questions:
  • A. True
    8·2 answers
  • What are the advantages of renting a home over buying a home? What are some disadvantages?
    13·1 answer
  • What does the hard disk drive do?
    9·2 answers
  • You are part of a testing team at a software business. Your job is to see how many concurrent users the system can host and how
    7·1 answer
  • 4. How does distance affect the strength of the force of gravity?_
    5·1 answer
  • Short Essay on the history of Computer​
    6·2 answers
  • Who knows coding questions? Please help! Thanks.
    6·1 answer
  • Write a recursive method that returns the number of 1’s in the binary representation of N. Use the fact that this is equal to th
    9·1 answer
  • Alguien que me pueda ayudar diciéndome las características de Visual Object en programacion porfavor?!
    6·1 answer
  • Lucy is trying to decide what sources to use in her literature review. The type of sources Lucy will use in her literature revie
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!