Create a java gui app implement inside a main method

Assignment Help JAVA Programming
Reference no: EM13945310

GUI worksheet

1. Create a Java GUI app, implement the following criteria inside a main method 1) set up a visible frame with width 500, height 300; 2) frame title is "CSE205 Frame app"; and 3) setDefaultCloseOperation to EXIT_ON_CLOSE.

2. Continue working on previous question, create a button and a textfield (size:20) on to the same frame. What do you see?

3. Per previous question, create a panel object to organize the button and textfield in it. (create a JPanel object, add JButton and JTextField objects to the panel, add the JPanel object to the frame)

4. create 4 swing components (1 label, 1 textfield(size:15), 1 button and 1 textarea(10 rows and 30 columns)); when the button is clicked, the textarea will display the content of textfield.

public class MyFrame extends JFrame{
private JLabel myLabel;
private JButton myButton;
private JTextField myTextField;
private JTextArea myTextArea;
public MyFrame(){

public class MyGUIViewer {
public static void main(String args) {
JFrame myFrame = new MyFrame();
myFrame.setDefaultCloseOperation(myFrame
.EXIT_ON_CLOSE );

}
public JButton createPrintButton(String text){

myFrame.setSize(400,300);
myFrame.setVisible(true);
}
}

}
}

5. change the textarea to non-editable and background color as green.

6. Per assignment5, parseStringToProduct(String lineToParse) method will process lineToParse argument to split a big long string with certain pattern.

7. Please use proper formats to print out 2 digits after decimal point. What's the outcome when you print number1 with currency format?
double number1 = 3.1056;

Reference no: EM13945310

Questions Cloud

Discuss the 7-s model in relation to a company : Discuss the 7-S model in relation to a company of your choice. The company can be from anywhere in the world. In your answer you will need to discuss the seven steps to success and how organisations achieve success in today's market place
In an agreement to exchange dollars for euros : In an agreement to exchange dollars for euros in 3 months at a price of $.090 per euro, the price is the: Mutual funds which allow shares to be redeemed at any time at a price that is tied to the asset value of the fund are known as: Investment banks..
Give your answers correct to one decimal place : Consider the following. (Give your answers correct to one decimal place.)
Calculate the molar concentration of the solution : A 0.250 L aqueous solution contains 50.0 g of ethanol, C2H5OH. Calculate the molar concentration of the solution in mol·L-1.
Create a java gui app implement inside a main method : Create a Java GUI app, implement the following criteria inside a main method 1) set up a visible frame with width 500, height 300; 2) frame title is "CSE205 Frame app"; and 3) setDefaultCloseOperation to EXIT_ON_CLOSE.
Identify the erroneous bit in the given message : One simple technique combines row-based(character) parity with column-based (longitudinal) parity to help detect and correct single-bit errors.
Problem for a classmate to solve that can be translated : Write a problem for a classmate to solve that can be translated to a system of two (2) or more equations in a least two (2) variables. Explain your answer.
Attractiveness of a potential market : Q1) Discuss how the sociocultural environment will affect the attractiveness of a potential market
Key components of the affordable care act : Identify and describe 10 key components of the Affordable Care Act. It may help to think about the following: Type of individuals that will be seeking coverage and The benefits and draw backs of the ACA

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd