Results 1 to 4 of 4
  1. #1
    Louis is offline Member
    Join Date
    Nov 2010
    Posts
    9
    Rep Power
    0

    Default How to create Java Button Link

    I know how to create the button but i want to click the button go to another link ?? Can give me sample example or clue to do it??

  2. #2
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    what do you mean go to another link?

  3. #3
    Louis is offline Member
    Join Date
    Nov 2010
    Posts
    9
    Rep Power
    0

    Default

    From 1st page i click the button go to second page..

  4. #4
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    I will assume that the "page" you are talking about are the containers such as JFrame, JPanel, JDialog etc.
    To show another window just use
    Java Code:
    SYNTAX:
     <container's name>.setVisible(true || false)
    EXAMPLE:
     JFrame1.setVisible(true);

Similar Threads

  1. How to link VB dll to java
    By ak88 in forum Advanced Java
    Replies: 2
    Last Post: 07-28-2009, 07:27 PM
  2. Link To Java Projects
    By mystified in forum New To Java
    Replies: 9
    Last Post: 09-24-2008, 12:01 PM
  3. How to create main class link to another two class?
    By pearllymary78 in forum New To Java
    Replies: 6
    Last Post: 07-17-2008, 12:02 AM
  4. How to create a Ploygon Button
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 08:39 PM
  5. Dynamically create a button, but what happened?
    By love2java in forum AWT / Swing
    Replies: 1
    Last Post: 02-17-2008, 01:01 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
  •