Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone help me debug this Java program? Below is a section of the program that does not need debugging - but wasn't sure if

Can anyone help me debug this Java program?

Below is a section of the program that does not need debugging - but wasn't sure if you needed to see it.

image text in transcribed

The section below shows no errors but should show the JFrame which it does not.

image text in transcribed

code to copy

public class SomeRandomFrameTest { public static void main( String[] args ) { SomeRandomFrame typingT utorFrame = new SomeRandomFrame(); typingT utorFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); typingT utorFrame.setSize( 600, 400 ); } }

(remove spaces in T utor)

ITCS-2590 Debugging Execise Chapter 14- NetBeans IDE 8.2 File Edit View Navigate Source Refactor Run Debug Profile Teem Tools Window Help Search (Ct1+) Projects X 93b TCS-2590 Debugging Exercise 1013 Source History private JLabel bullaevetabel 21 1TC5-2990 Debugging Exercise public SomeRandomFrame ) Source Packages 23 24 25 26 27 28 29 super ( Some Random Frame") setLayout (new BorderLayout O) bulseye.jpg Test Packages someSil1yNORTHLabel - new JLabel ("Hello, from Some Random Label NORTH!" somesi1lyNORTHLabel.setHorizontalAlignment (SwingConstants.CENTER) add (someSillyNORTHLabel, BorderLayoutNORT): default package> Lbraries Test Libraries 31 somesil1ySOUTHLablnew JLabel ("Hello, Erom Some Random Label SOUTH!) aomesi11ySOUTHLabel.setHorizontalAl1gnment (SwingConstants. CENTER): add (someSillysOUTHLabel, BorderLayout SOUTH): ITCS-2590 Debugging Exercse dao 32 34 35 36 37 someSillyEASTLabel-new JLabel ("EAS >>>>"); somesi1lyEASTLabel.aetHorizontalAlignment (SwingConatants. CENTER) add (someSillyEASTLabe, BorderLayout. EAST) 39 40 41 42 43 someSillyNESTLabel-new JLabel (WEST" somesi1lyNESTLabel.aetHorizontalAlignment (SwingConatants. CENTER) add(someSillyNESTLabel, BorderLayout-REST); bullseye- new ImageIcon (getclass getResource ("bullseye-jpg")) bu11aeyeLabe! = new JLabel("", bul 1a eye, Swingconstants. CE,NTER); add (bullseyeLabel, BorderLayout.CENTER): 45 46 Test Results X Output ITCS-2590 Debugging Exercise Chapter 14 (run)X INS 10:22 AM Type here to search 7/1/2017 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago