Help making a label clickable

HI,
I am currently triying to set up a JLabel so that it can link me to go to another page in the GUI. Could anyone possibly help please
many thanks

JLabel label = new JLabel();
          label.addMouseListener(new MouseListener() {
               public void mouseClicked(MouseEvent e) {
                    // TODO Auto-generated method stub
               public void mouseEntered(MouseEvent e) {
                    // TODO Auto-generated method stub
               public void mouseExited(MouseEvent e) {
                    // TODO Auto-generated method stub
               public void mousePressed(MouseEvent e) {
                    // TODO Auto-generated method stub
               public void mouseReleased(MouseEvent e) {
                    // TODO Auto-generated method stub
          });you probably want the mouseReleased method to do the business

Similar Messages

  • I need help making a layer clickable

    I am trying to make the layer "click to call" clickable but cant do it.   Please help.   Thanks!

      You can only isolate it using the slice tool in CS6. It’s not possible in Elements however you could save the entire design as a jpeg or png file and use it as a clickable link. See this earlier thread of mine for details:
    http://forums.adobe.com/message/4687469

  • Help making a Install USB of os x 10.4.6. for my Macbook 1.8ghz

    Hi,
    I need help making the USB install of os Tiger.
    The drive is having trouble reading the install disc I own so I am trying to make a USB install of it.
    I wantto install from the usb not install to it to be clear.
    Things I have!
    X1 8gig sandisk flash drive
    1 Macbook white 1.8 ghz Intel
    1 Pc with Macdrive 7
    1 Install disc that seems to have trouble being read in the drive > few marks on the disc and the mac DVD drive make lots of noise reading it but
    It will go to Disk utilities.
    Seems to be a bug in Tiger and restore doesn’t seem to work as in I can’t drag and drop a source to the restore the DVD to the flash drive.
    I already tried only 1 time to copy the DVD to the formatted flash drive using Macdrive and it read it as a bootable drive but the apple simple came up
    And then I got a the error (Can’t find driver for this platform error APCH or something like that.
    I have a torrent download of OS x 10.4.6 as well just in case some files are corrupted > I own the disk so it’s not illegal.
    I am new to mac but long time user of PC.

    Ok ..you need another Mac to make this work!
    you just use another mac even a old one like g4 to make a restore to a flash drive that you have formatted and verified.
    Bye
    Sam

  • I need help making Adobe Edge animation appear correctly on iphones, ipads and android phones.

    I need help making Adobe Edge animation appear correctly on iphones, ipads and android phones. It currently looks fine on desktops and androids. I am using wordpress with a responsive theme (Canvas). I will need you to document The url is http://adamhtc.org.s183459.gridserver.com.

    Thanks George, interesting thought.  I looked on Adobe's site and they "advertise" fillable forms for the iPhone and Android markets, but on the Windows Phone tab, that is mysteriously missing.  lol    Maybe it will come later?   Meanwhile, I'll google to see if there are any PDF viewers that can handle it now.   Thanks for the reply.  :-)

  • Pie chart Labels clickable

    Hey guys,
    Is there a way to make pie chart labels(callout labels) clickable?
    Thanks in advance.

    Hans:  Thanks, again.
    (And, again, this should be easy but isn't).  Requestors ask the darndest questions.
    Doug in York PA
    Douglas R. Eckert

  • Help making a logon page

    I need help making a simple logon page in Dreamweaver MX. I
    have tried Visual Basic. and several other methods to no avail. If
    someone could help me it would be greatly appreciated
    Ron Hansen

    Hi Ron
    The proceedure is pretty much the same in
    PHP/Coldfusion/JSP/ASP.
    There is a very easy to follow example in the Dreamweaver
    Help File.
    Just go to Help-->Developing Applications Rapidly -->
    Building pages that restrict access to your site (ColdFusion, ASP,
    JSP, PHP) --> Building a login page
    I don't think it can get much easier. But remember that you
    will need to have a database table of user details in place to
    complete the process.
    Good luck.

  • Need Help making a Screencast for IPHONE

    Hello there
    I need some serious help making a screencast for a client - for it's Iphone Apps -
    something similare to this
    http://www.newsluxe.com/chaumet-et-iphone.php
    but more sexy, with a animated background and a different type of cursor.
    Anyideas ?
    I really don't know where to start - I found leads however :
    Camtasia Studio , screenflow, ,
    Maybe you could help me filling the gaps.
    Thanks for your help !

    does anyone know how apple made these forums?
    I think they use Jive:
    http://www.jivesoftware.com/products/forums/
    The Apple way for users to add photos is the .Mac web gallery:
    http://www.apple.com/ilife/iphoto/#webgallery

  • My grandma is a new apple user and she needs help making an apple account.

    my grandma is a new apple user and she needs help making an apple account.

    She should call Apple support or visit the Genius Bar at an Apple store (make an appointment first at http://apple.com/retail). They will walk her through the process.

  • Help making a clock

    Hey,
    I was hoping to get some help making a clock update for me, but I don't want just to show the actual date, I know how to do that. What I want is to be able to set a time, and then the clock start running from then. For instance, after I enter Jan 3rd, 2005 at 3:43 as my time and date, I want the clock to start from there and update every second. Does that make sense?
    Could someone help me out where to look to get this to happen? Thanks!

    I think the OP wants to be able to set a time OTHER
    than the current time. He doesn't want to wait
    untill the time you entered to have the clock tick,
    he wants to have it tick immediately from the "fake"
    time that you've entered.
    At least that's how I understood him. The offset is
    the difference between the real time and the fake
    time entered by the user.
    If he just wants to display the current time, but not
    stat doing that untill some point in the future then
    yeah TimerTask is the simplest way to do it, but I
    don' think that's what he's trying to do.thanks for the replies guys. I appreciate it. Sorry if I was a bit unclear. Norweed was right in saying that I want to set the time and start updating immediately, not wait until the time reaches my entered time and then count. Sorry for the confusion.
    I was thinking that a offset would work, thanks for recommending that. I'm wondering if the time will get off after a while, I need this program to run probably arounnd 2-3 hours. Hopefully it won't drift very much over that time.
    Thanks all for the recommendations and I will check all that out.

  • Help Making a Ringtone!

    Hi,
    I can't seem to make any ringtones for more than the first 15 seconds of a song in garageband. I know the songs I am trying to use are unprotected because they are recordings of me playing jazz and we didn't protect them, they are in mp3 format. But I can't get mp3 mp4a or AAc format to play more than the first 15 secs. I tried tuneclone, mp3 converter and everything. All i want to do is create a ringtone of a song. please help.

    harriettfromjacksonville wrote:
    Purchased a ringtone and need help making it my ringtone for my new Iphone.  Help.
    You have to create the ringtone.
    There are many free ways to do this.  Google will find them.

  • I need help with printing labels.  please

    I need help with printing labels.  thanks in advance

    Welcome to Apple Support Communities.
    In Address Book, first select a name or group of names to print.
    Then File, Print, select Style, Mailing Labels, then Layout to select a specific target label (such as an Avery number), or define your own...

  • FCE helps making better quality videos than imovie?

    I have been using iMovie HD and it looks like its corrupted and cannot re-install it since I lost the disk image.
    I am thinking of going to FCE over upgrading to iLife 09.
    Does FCE helps making better quality videos than imovie?

    Eswar M wrote:
    ... Does FCE helps making better quality videos than imovie?
    if your source is miniDV/Standard - yes.
    if your source is 720p or iFrame - no.
    in terms of speed and simplicity - iM09 is 'better'.
    in terms of options and feature - FCE is by far superior.
    note: iM09 is no 'upgrade' of your version, but a from ground off new app.
    another note: FCE has a very steem learning curve, but after managing that is a fantastic tool!

  • Making jars double-clickable please help

    i'm having trouble making a jar file double-clickable.... and i'm not entirely sure that i'm making the jar file correctly in the first place.
    the program is called clock.java, and i can compile and run it from netbeans. the three classes, ClockView, Timestamp, and clock, are in a directory together, and clock has the main.
    in order to make it double-clickable, i'm supposed to have a manifest file called Manifest.mf with a line of code:
    Main-Class: clock
    which i put in a text file in the same directory as clock, ClockView, and Timestamp. i name it "Manifest.mf".
    from command prompt, in the same directory, i've tried typing the jar command several different ways.
    jar cvf Manifest.mf clock.jar *.class
    -this one makes a Manifest.mf file, but no jar. Manifest.mf is full of computer lang stuff.
    jar cvf clock.jar *.class
    -this makes a clock.jar, but obviously no manifest file.
    these are my questions:
    do i need to put in the manifest file when i make the jar? was my command line correct for this if so? is my manifest file correct if so?
    if i am supposed to add it later, how do i?
    is there some reason i wouldn't be able to make jar files from this directory?
    when it does make the jar file, if i double-click it, i get:
    Failed to load Main-Class manifest attribute from C:\Documents and Settings\paul\Desktop\java\clock\src\clock\clock.jar
    i'm kind of new at this, and i've been trying to figure this out for a while. thanks for the help.

    The same problem happened to me .. First every time a tried to run the jar file from the command prompt it echoed lots of error. not finding pertaining to manifest file.
    Later i fixed it. And I tell you the easy way how to run the jar file from the command prompt.
    When you build the ur project in NetBeans IDE. During running it tells how to run the jar file from the command prompt. But before running your project you need to right - click to your project and choose the properties and choose run and define you main class(you also click browse to automatically find the main class ).
    And after that u can build. During building your project in the ouput window running you project on the command prompt is told so you can copy it and paste it in a file with .bat extension and double click to run it/

  • (Please Help) making buttons clickable (layout done in photoshop)

    I am a newbie to all of this. I been trying to learn html/css
    and I am still learning it but I needed a quick way to get my
    website up and running. So, I created my layout in photoshop, I
    sliced it and imported it anything dreamweaver. I made the content
    area editable. Now I have 10 buttons that needs to be clickable. I
    was on my index.html page and use the hotspot tools to try and make
    them clickable. Indeed it did on my index page. Was I suppose to
    use the hotspot tools or was I suppose to select the image, replace
    it and then link it (when I tried that way at first, it messed the
    page and had boxes and lines everywhere, like the page was broken
    up, I really dont know what I did wrong there)
    My problem is that how do I make all 10 pages of my website
    buttons clickable without having to go to each page, like the about
    page, services page, contact page, etc.... and using the hotspot on
    all 10 pages?
    Do I have to make it as a template or something?
    Here is a picture of the problem...What did I do wrong or how
    to fix the problem?
    http://i39.tinypic.com/2ltmuzs.jpg

    So many problems, so little time. First and most importantly,
    I admire your courage to "forge ahead", but you need to start with
    the basics (some of the dreamweaver tutorials, template pages, etc.
    and learn slowly and methodically.) A well functioning site is far
    more important than a graphically pleasing site...
    There are many apparent problems based on your jpg, but can't
    address any without seeing the code.
    Buttons: If they are separate slices, they don't need image
    map "hot spots" to link them. Simply select one, and assign a link
    to it via the properties window. If you saved your entire "header
    graphic" as all one piece, and placed it into your page, that would
    be when you would want to assign "hot spots" to each section of the
    graphic, but if they are separate pieces, there is no need for the
    hot spots.
    Templates: Yes, a template is the best way to ensure each
    page functions and has the same links as the rest. If you dont have
    a template set up, you will need to assign all of your links
    separately to each page of your document. To create a template, you
    first need to create one good, functioning page, then save as
    template. Once a template, you'll need to assign which areas you
    want to be editable (usually the "content area"). The advantage of
    a template is also that if you need to make a global change to all
    of the pages somewhere down the road, the change will automatically
    update itself on all pages. After the template is created, create a
    "New page from Template".
    By the looks of your jpg image, you have a whole host of
    other problems with the way the page is set up - if you're using
    tables to compile, you aren't using them well. The more complicated
    you try to slice up a single table, the likelyhood of problems like
    you're showing multiplies exponentially - keep it simple.
    Experiment with "nested tables" to see if that helps, but DON"T
    OVERDO... If you're using css - do some reading, or try to begin
    with one of the Dreamweaver template pages to start, then slowly
    modify and test as you go - it's tricky at first.
    For that matter, if you don't have any "rollover" effect or
    anything else going on in the top area, you may be far better off
    saving it as one piece and image mapping the "hot spots" for your
    links, and it won't break apart the way you're showing.
    Keep trying, but take it slow - take a course or purchase a
    tutorial dvd - it is well worth the investment and will save you
    countless hours of frustration and "stabbing in the dark"...
    Hope that helps - don't be in such a hurry to get your site
    "live" - take your time and it will get easier...

  • Need some help in making a label disappear for certain time

    hi
    i need to make a program for my java class
    this is the question
    Design and implement a memory game. In this game you show the user a sequence of
    random integer numbers in the range of 0 to 99, and then ask him to type these
    numbers. Display how many he has remembered as a score. The level of game depends
    on how many numbers are there in the sequence. The duration of the display for the
    sequence is the speed. The user can adjust the level and the speed.
    my question is how to view the numbers for the game and make them disappear after certain time
    in need help with the syntax for it
    this is what i made so far
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.FlowLayout;
    import java.awt.Color;
    import javax.swing.JButton;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    class game extends JFrame implements ActionListener {
    public static final int WIDTH = 500;
    public static final int HEIGHT = 300;
    public static final int x = 3;
    public static final int y = 3000;
    public static void main(String[] args) {
    game gui = new game( );
    gui.setVisible(true);
    public game( )
    super("MEMORY GAME");
    setSize(WIDTH, HEIGHT);
    setDefaultCloseOperation(JFrame.EXIT_ON_…
    setLayout(new BorderLayout( ));
    JPanel buttonPanel = new JPanel( );
    buttonPanel.setBackground(Color.LIGHT_GR…
    buttonPanel.setLayout(new FlowLayout( ));
    JButton b1 = new JButton("MAKE IT HAREDER!!!");
    b1.addActionListener(this);
    buttonPanel.add(b1);
    JButton b2 = new JButton("MAKE IT FASTER!!!");
    b2.addActionListener(this);
    buttonPanel.add(b2);
    add(buttonPanel, BorderLayout.SOUTH);
    public void actionPerformed(ActionEvent e)
    String buttonString = e.getActionCommand( );
    if (buttonString.equals("MAKE IT HAREDER!!!"))
    else if (buttonString.equals("MAKE IT FASTER!!!"))
    }

    To post code, use the code tags -- [code]Your Code[/code] will display asYour CodeOr use the code button above the editing area and paste your code between the {code}{code} tags it generates.
    I strongly suggest you forget about the GUI part and first make a console application that fulfils the game specifications. If you have problems with this, you can post your questions in the New to Java section of these forums.
    db

Maybe you are looking for

  • I have Mac OS X 10.7.4.  Why can't I get my iCloud photo stream to work?

    I have Mac OS X 10.7.4.  Why can't I get my iCloud photo stream to work?

  • Using ipod on xbox 360

    I just today bought an xbox 360 and i tried connecting my ipod video to it but for some reason after i select the song to be played absoloutly nothing happens. Please help me resolve this issue. I appriciate the help thank you.

  • Integration of sun identity manager with sun access manager

    Hi i am working on integration of sun identity manager 6.0 with SP1 and sun access manager7.0.IDM was deployed on Sun application server 8.1.SAm is installed on SunOneWebserver i am working on windows 2003 server.I downloaded the agent for the applic

  • Sharepoint as datasource

    Post Author: torreykite CA Forum: Semantic Layer and Data Connectivity Is it possible to use sharepoint lists as source tables in a BO Universe (6.5)? if so how would I establish the connection? Thanks, TK

  • Third Party Jars

    Hi folks, Just wondering if anyone has used any third party jars in conjunction with your applications. If so where do U put it....I tried putting in the lib directory as well as a startup class, but my application just doesn't pick it up. Anyone has