Results 1 to 4 of 4

Thread: Change jframe

  1. #1
    Rasmase is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Lightbulb Change jframe

    Well im using NetBeans and i wanna change the current viewed jframe from one called DotFightUI to one called Game.
    Anybody can help me?


    Im pretty new to java and trying to make a game work

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

    Default

    setVisible(false) for one and true for the other

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,305
    Rep Power
    20

    Default

    Or use just one frame with a CardLayout.

    db

  4. #4
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Posts
    356
    Rep Power
    5

    Default

    Quote Originally Posted by DarrylBurke View Post
    Or use just one frame with a CardLayout.

    db
    .....
    this.

Similar Threads

  1. Update the JFrame after change the Content Pane
    By alisonchan30 in forum AWT / Swing
    Replies: 1
    Last Post: 04-26-2010, 06:22 AM
  2. Change JFrame taskbar color?
    By dunafrothint in forum AWT / Swing
    Replies: 3
    Last Post: 03-05-2010, 05:14 AM
  3. weird insets change in JFrame subclass
    By sowilo in forum AWT / Swing
    Replies: 4
    Last Post: 11-18-2009, 12:27 AM
  4. Change the shape of JFrame
    By kiki2009 in forum New To Java
    Replies: 4
    Last Post: 07-09-2009, 01:47 PM
  5. Listener for JFrame size change
    By Thez in forum AWT / Swing
    Replies: 10
    Last Post: 02-14-2008, 03:10 PM

Posting Permissions

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