Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: Getting error on a simple program.

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting error on a simple program.

    So, I am just starting out on GUI for java and I am getting a stack overflow error, I am not sure why.
    package start;
     
     
    import javax.swing.*;        
     
    public class HelloWorldSwing extends JFrame {
     
    	public HelloWorldSwing()
    	{
    		this.setSize(40,40);
    		this.setLocation(0,0);
    		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	}
    	//Only makes the frame visible
    	public void show()
    	{
    		this.setVisible(true);
    	}
    	//makes the frame visible and sets the title to title
    	public void show(String title)
    	{
    		this.setTitle(title);
    		this.setVisible(true);
    	}
    	//makes the frame visible, changes its title and sets the location to x,y
    	public void show(String title,int x,int y)
    	{
    		this.setTitle(title);
    		this.setLocation(x,y);
    		this.setVisible(true);
    	}
    	//Hide the frame
    	public void hide()
    	{
    		this.setVisible(false);
    	}
     
     
        public static void main(String[] args) {
     
        	HelloWorldSwing S=new HelloWorldSwing();
    		S.show();
     
        }
    }


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Getting error on a simple program.

    Please copy a few lines of the error message that shows the repeating calls happening to cause the error and paste it here.

    stack overflow error is usually caused when there is a loop where methods call each other.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Getting error on a simple program.

    An interesting error. JFrame already has a show() method inherited from java.awt.Window which your code overrides. I'm sure that if you investigate the Window.show() source code, you'll be able to find the reason for the infinite recursion.

    Update: It's not the show() method you'd want to inspect but the setVisible().

  4. #4
    Junior Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Getting error on a simple program.

    This is the error I am getting.
    I am not sure how to solve it since I am new to graphical user interface and copied this from a book.
    Link to the book
    http://files.laitec.ir/wp-content/up...hical-User.pdf

    Error:

    Exception in thread "main" java.lang.StackOverflowError
    	at java.awt.Component.show(Component.java:1614)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    	at java.awt.Component.show(Component.java:1615)
    	at java.awt.Component.setVisible(Component.java:1567)
    	at java.awt.Window.setVisible(Window.java:846)
    	at start.HelloWorldSwing.show(HelloWorldSwing.java:18)
    Quote Originally Posted by GregBrannon View Post
    An interesting error. JFrame already has a show() method inherited from java.awt.Window which your code overrides. I'm sure that if you investigate the Window.show() source code, you'll be able to find the reason for the infinite recursion.

    Update: It's not the show() method you'd want to inspect but the setVisible().

  5. #5
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Getting error on a simple program.

    Exception in thread "main" java.lang.StackOverflowError
    at java.awt.Component.show(Component.java:1614)
    at java.awt.Component.setVisible(Component.java:1567)
    at java.awt.Window.setVisible(Window.java:846)
    at start.HelloWorldSwing.show(HelloWorldSwing.java:18 )
    at java.awt.Component.show(Component.java:1615)
    at java.awt.Component.setVisible(Component.java:1567)
    at java.awt.Window.setVisible(Window.java:846)
    at start.HelloWorldSwing.show(HelloWorldSwing.java:18 )
    Your show() method at line 18 calls the Window class's setVisible() method
    The setVisible() method at line 846 calls the Component class's setVisible() method
    That setVisible method at line 1567 calls the Component class's show() method
    That show() method calls your show() method at line 1615
    Then the whole thing repeats itself until the overflow error.

    Recommend you do NOT use methods with the same name as exist in the classes that are being extended unless you mean to override them.
    If you don't understand my answer, don't ignore it, ask a question.

  6. #6
    Junior Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Getting error on a simple program.

    oh ok.. I got it.
    Cheers mate

    Quote Originally Posted by Norm View Post
    Your show() method at line 18 calls the Window class's setVisible() method
    The setVisible() method at line 846 calls the Component class's setVisible() method
    That setVisible method at line 1567 calls the Component class's show() method
    That show() method calls your show() method at line 1615
    Then the whole thing repeats itself until the overflow error.

    Recommend you do NOT use methods with the same name as exist in the classes that are being extended unless you mean to override them.

  7. #7
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Getting error on a simple program.

    In general I would advice against polymorphismn in java whereever it is possible. Do you extend classes when the class was specifically designed to be extended, for example abstract classes.
    Instead use delegation when possible. This will help you to make more stable and maintainable programs. Errors like this one, where the names of the super class and the sub-class are in conflict, would not be possible anymore if you use delegation instead.

  8. #8
    Junior Member GeorgeEpicGen's Avatar
    Join Date
    Aug 2014
    Location
    North Wales, United Kingdom
    Posts
    3
    My Mood
    Busy
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Getting error on a simple program.

    Quote Originally Posted by Norm View Post
    Your show() method at line 18 calls the Window class's setVisible() method
    The setVisible() method at line 846 calls the Component class's setVisible() method
    That setVisible method at line 1567 calls the Component class's show() method
    That show() method calls your show() method at line 1615
    Then the whole thing repeats itself until the overflow error.

    Recommend you do NOT use methods with the same name as exist in the classes that are being extended unless you mean to override them.
    Holy Christ, I see why you're Super Moderator. I wouldn't have spotted that in a million years.

    Good job!
    "All matter is merely energy condensed to a slow vibration, that it is all one consciousness experiencing itself subjectively. There is no such thing as death, life is just a dream, and we are all the imagination of ourselves."
    - Bill Hicks

  9. #9
    Junior Member
    Join Date
    Aug 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Getting error on a simple program.

    JFrame jf = new Jrame();
    call with jf
    like a jf.setSize(40,40);
    change in whole prog.

Similar Threads

  1. Java simple program error?
    By derialvish in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 22nd, 2014, 05:48 AM
  2. [SOLVED] Java Simple Rectangle Program Error
    By XP360 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 22nd, 2013, 11:07 PM
  3. Help with this very simple error
    By Tctwins in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 21st, 2012, 01:54 PM
  4. urgent simple help for a very simple program
    By albukhari87 in forum Java Applets
    Replies: 4
    Last Post: June 5th, 2010, 03:43 PM
  5. Error of data types and type casting in java program
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: September 2nd, 2009, 10:22 AM

Tags for this Thread