Results 1 to 6 of 6
  1. #1
    ChaosProjects is offline NOOBTOCODE
    Join Date
    May 2013
    Location
    Virginia.
    Posts
    10
    Rep Power
    0

    Default making window error need help

    import java.awt.*;
    import javax.swing.*;

    //Create a simple GUI window
    public class TopLevelWindow {

    private static void createWindow() {

    //Create and set up the window
    JFrame frame = new JFrame("Simple GUI");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);

    JLabel textLabel = new JLabel("DEREK likes

    tacos",SwingConstants.CENTER);
    textLabel.setPreferredSize(new Dimension(300,100));
    frame.getContentPane().add(textLabel, BorderLayout.CENTER);

    //Display the window.
    frame.setLocationRelativeTo(null);
    frame.pack();
    frame.setVisiable(true);


    }


    public static void main(String[] args) {

    createWindow();
    }



    }


    this is my code



    this is the error


    TopLevelWindow.java:20: error cannot find symbol
    frame.setVisiable(true);

    symbol: method setVisiable(boolean)
    location: variable frame of type JFrame
    1 error

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

    Default Re: making window error need help

    Spelling!

  3. #3
    ChaosProjects is offline NOOBTOCODE
    Join Date
    May 2013
    Location
    Virginia.
    Posts
    10
    Rep Power
    0

    Default Re: making window error need help

    Quote Originally Posted by Junky View Post
    Spelling!
    where would that be? i followed this off of java.about.com

  4. #4
    ChaosProjects is offline NOOBTOCODE
    Join Date
    May 2013
    Location
    Virginia.
    Posts
    10
    Rep Power
    0

    Default Re: making window error need help

    Quote Originally Posted by ChaosProjects View Post
    where would that be? i followed this off of java.about.com
    off*

  5. #5
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

    Default Re: making window error need help

    Where would what be? You have misspelled the name of the method.

  6. #6
    ChaosProjects is offline NOOBTOCODE
    Join Date
    May 2013
    Location
    Virginia.
    Posts
    10
    Rep Power
    0

    Default Re: making window error need help

    Thankyou for your assistance. What have you coded?

Similar Threads

  1. Closing secondary window from button in primary window
    By KoncentriK in forum New To Java
    Replies: 4
    Last Post: 02-26-2012, 01:24 AM
  2. Replies: 1
    Last Post: 07-25-2011, 10:24 AM
  3. Java - Error in terminal window
    By cvillejin in forum New To Java
    Replies: 3
    Last Post: 04-01-2011, 08:03 PM
  4. Replies: 6
    Last Post: 02-24-2009, 02:50 PM
  5. Error logged from JDT Debug UI Window
    By tsc in forum Eclipse
    Replies: 1
    Last Post: 07-10-2008, 08:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •