Type of listener needed for buttons ? please help

hi
does anyone know what type of event or listener one should
include for buttons in a web page which has been downloaded
into a JEditorPane. i have been able to get a web page
onto my JEditorPane and can even follow most of the hyper links
by implemmeting hyperlinklistenter.
but i am not able to do the same for butttons
ie for eg in google web site i am not able to get anythinh
by clicking on button .

This is not easily dooable, You're talking about form submit buttons, which the Default HTMLEditorKit does not support. Even worse, the LinkController class is not overridable, which is a bad design on sun's part.
You'd have to create your own EditorKit, me thinks, and use that for text/html.
Not an easy job, but you could cheat off the HTMLEditorKit source.

Similar Messages

  • Can't install a font I need for work - please help! 10.4 ={

    Hello,
    So I am trying to install this font on my work computer, which is old and has os x 10.4.11 (tiger?). I have downloaded the TTF file onto the desktop. When I double click to install it, it says I need to choose an application and none of them I tried will work. I have a brand new macbook myself and downloaded the same font - worked fine because I could put it right into font book.
    The problem here is that I cannot find font book anywhere on this computer and have not found any helpful discussions on how to re-install it or about different ways to get this font downloaded and usable. I have tried everything I can think of. I would just make these damned brochures on my own computer, but then they won't convert to this one.
    Anyways, super frustrated - any advice/places to get font book/or something else I could use would really help. I don't even care if it's a round-about way of doing it, I just NEED this font!!
    Thanks ahead of time!

    Is the font compatible w/Tiger?
    The Font Book is inside the Applications folder.  If it is not there, use Spotlight to search for it.  If Spotlight cannot find it, you can custom install Font Book directly from the system DVD that originally came w/your MBP. Use the custom install option.  It should be inside the Bundled Software folder.  If not, there, it will be inside the Applications folder. 

  • HT201295 My isight built in camera is only turning on for few second on my MacBook Pro (13-inch, Late 2011 ) when I use any camera needed app. Please help me.

    My isight built in camera is only turning on for few second on my MacBook Pro (13-inch, Late 2011 with osx Yosemite) when I use any camera needed app. Please help me. Its getting a little annoying.

    If restarting Mac or reinstalling OS X does not correct this symptom, you likely have a hardware problem.  Contact Apple Support or an Apple Authorized Service Provider for service.
    Message was edited by: EZ Jim
    Mac OSX 10.10.1

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • I try to make update for my iphone and start showing itunes need to be connected and never start and i connect my phone on itunes but it say need to be format for phone .please help me .

    I try to make update for my iphone and start showing itunes need to be connected and never start and i connect my phone on itunes but it say need to be format for phone .please help me .

    Hello Huss87bash,
    This screen indicates that the device is in recovery mode, and must be restored in iTunes before it can be used again.
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Once the device has been restored, you should be able to restore your device from a backup to replace all of your content and settings.
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Cheers,
    Allen

  • SIR I NEED TO UNLOCK MY IPHONE 4 FOR FREE PLEASE HELP ME HOW I DO THIS...........

    SIR I NEED TO UNLOCK MY IPHONE 4 FOR FREE PLEASE HELP ME HOW I DO THIS..........

    Call your carrier and request it is generally the best idea.
    <Edited By Host>

  • I downloaded the new version of firefox, now my flash player wont work, the html text box is gone and so is the back and forward buttons. please help??

    I downloaded the new version of firefox, now I cant watch any movies, the html text box is totally gone, and so is the back and forward website buttons, please help? can i just have the old version back?

    Not sure whether for instance you initially had a Yahoo optimised version of Firefox, and have now overwritten it with an official Mozilla version. Although the Mozilla version should NOT add unwanted features, but the Yahoo version may well do.
    If you merely need to find the Yahoo emails page quickly just add it as a bookmark or as a bookmark on the Bookmarks toolbar and make sure that is visible.
    Clicking the star icon on the location bar whilst looking at your emails will bookmark the page.
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window]]
    I do not use Yahoo myself,and am not sure what add-ons are available. You could search yourself using
    * FirefoxButton -> add-ons
    ** see [[Find and install add-ons to add features to Firefox]]
    ** examples [https://addons.mozilla.org/en-us/firefox/addon/yahoo-toolbar/ yahoo toolbar] & [https://addons.mozilla.org/en-us/firefox/addon/yahoo-mail-notifier/ mail notifier]
    * also look at Yahoo's own information such as http://help.yahoo.com/tutorials/toolbar/cl3/c3_ff_toolbar1.html

  • I cannot see the Vidoe displayed on the screen, only hear the sound.  I am missing a component? Compressor, etc. I just downloaded the latest version of Quicktime for Microsoft, please help.

    I am not able to view my video taken with a memory card only the sound?  I am missing a component? Compressor, etc. I just downloaded the latest version of Quicktime for Microsoft, please help
    I can see it on Windows Media? Need help on this.

    It says SEDG 720X480 2:1 Mono.  Video came from Sd memory card taken with a Samsung Video Camera.
    Strangely enough, as a FourCC, SEDG is defined as "MPEG-4 hardware and software codec used in Samsung digital video products." Not a Windows or Samsung camcorder user but THIS WEB PAGE may be of some assistance.
    Also I will need to view a CD recorded by the same camera (DVD-RW) file extensions are VIDEO_RM.BUP
    VIDEO_TS.IFO, VIDEO_TS.VOB,  SAMSUNG.IFO  So far these files don't open even with Windows Media.
    I don't know what to do to be able to open up these files save them on my Hard drive and then be able to upload them to YouTube.  Any Ideas?
    IFO files tell how the video content is segmented and where the video data is located. BUP files contain back-up IFO information. VOB files contain actual multipled audio/video data. A DVD formatted to play in a commercial DVD player normally contains a series of files named "VTS##_#.VOB" where ## refers to the "title" series and "_#" (where # is not a zero) refers to the order in which the video title file data is played.
    Again, I am neither a Windows user nor an athority on Samsung VIDEO_RM folder structures. However, if your disc contains both a VIDEO_RM and VIDEO_TS folder, then I would normally assume the VIDEO_RM folder is present for legacy purposes and/or to provide information about the refording device while the VIDEO_TS folder actually contains the video object (VOB) file data. In any case, as I am not familiar with what software is available for muxed MPEG-2/AC3 editing/conversion on a Windows platform, I would try viewing the VOB files in an application like MPEG Streamclip (free). If you can play the Audio and video content (be sure to read the MPEG Streamclip requirements regarding codec installation), then you can edit (merge and/or trim) the raw data and convert it to a format compatible for YouTube uploading. (I.e., MPEG Streamclip is commonly used on the Mac for this type of work flow and the app is also available for Windows use.)

  • It only uses 32bit, and my computer needs 64bit.   Please help.

    I am a non profit.  I ordered Photo shop Elements12 for PC  for my office.  It is a download only.  It doesn't dowload on my computer.  It only uses 32bit, and my computer needs 64bit.   Please help. The Adobe photoshop elements 12 is useless to me.  I can't seem to get anyone at Techsoup to help and trying to get Adobe to help is runaround.  What should I do to get it to run on my computer.  Please someone in the forum let me know how switch out the download for the correct one.

    64-bit windows can run 32-bit applications just fine and always has.  They are just limited to a small amount of memory.   If something isn’t working it’s likely another problem like an incomplete download or trying to install the Mac version on a PC or something like that.
    You can try downloading and installing from the PSE12 link, here, to see if it works any better:
    http://www.adobe.com/downloads/other-downloads.html
    If you can’t get things to work, then please post a screenshot of the error and a description of what you’re trying to do that lead to the error.
    Also the term “downloading” refers to transferring a file from a remote server, across the internet, to your local computer.   The term “install” means running the program that was downloaded on your local computer to put the working program on your computer that you can run.
    It would be helpful to know if your saying that the actual transfer across the internet part isn’t working, or if that part seemed to work, but when you run that installer program you’re seeing an error.

  • I have a debit card but would like to download apps from the store. how do I do that? I can't possibly get a credit card just for this. please help.

    Hi,
    I have an iTouch. I'd like to download some free apps. but I have a debit card but would like to download apps from the store. how do I do that? I can't possibly get a credit card just for this. please help.

    I really do not think it is the iPad or your network connection. Other users have reported this very same issue. Try this and see if it works for you - it may not work - but it's easy to try - harmless - and it has worked in the past for others.
    Try signing out of your account and restart your iPad.
    Go to Settings>Store>Apple ID and tap the ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button. Go back to Settings>Store> Apple ID and sign in again.

  • URGENT FIX MY Connect Four game for Wednsday PLEASE HELP

    I am using an APPLET and i want to use JOptionpane it didnt work when i used it in the paint method. So i want to make a runner to make the program work. I don't know why the Graphics g = new Graphics isnt working PLEASE HELP. Email the revised code to my email at [email protected]. URGENT FOR TOMORROW PLEASE HELP. should i have a spearate class for the runner, just email me please if you can help.
    import javax.swing.JApplet;
    import java.applet.*;
    import java.awt.Graphics;
    import java.awt.Color;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JOptionPane;
    public class Board extends JApplet
    // the grid used for storing the game layout.
    private int[][] grid;
    // the player whose turn it is.
    private int currentPlayer;
    public final int player1=1;
    public final int player2=2;
    private int place1=5;
    private int place2=5;
    private int place3=5;
    private int place4=5;
    private int place5=5;
    private int place6=5;
    private int place7=5;
    public static void main()
    int column1;
    int column2;
    String name1;
    String name2;
    Graphics g=new Graphics();
    Board test= new Board();
    boolean wait=true;
    while(wait)
    String starts=JOptionPane.showInputDialog("Are you ready? \n (yes or no)");
    starts.toLowerCase();
    if(starts.equals("yes"))
    wait=false;
    name1=JOptionPane.showInputDialog("Enter Player 1's Name");
    name2 = JOptionPane.showInputDialog("Enter Player 2's Name");
    test.paintBoard(true,g);
    while(!test.done() || !test.hasWon(g,player1) || !test.hasWon(g,player2))
    column1=0;
    while(column1>0 && column1<8)
    column1=Integer.parseInt(JOptionPane.showInputDialog(name1+" what column do you choose?"));
    test.place(player1, column1,g);
    if(!test.done() || !test.hasWon(g,player1))
    column2=0;
    while(column2>0 && column2<8)
    column2=Integer.parseInt(JOptionPane.showInputDialog(name1+" what column do you choose?"));
    test.place(player2, column2,g);
    public Board()
    // create the grid
    grid = new int[7][6];
    // initialize the gridc
    for (int row=0; row<6; row++)
    for (int column=0; column<7; column++)
    // set the position to a default value
    grid[column][row] = 0;
    public boolean done()
    boolean flags =true;
    for (int row=0; row<6; row++)
    for (int column=0; column<7; column++)
    if(grid[column][row] == 0)
    flags=false;
    return flags;
    public void paint(Graphics g)
    public void paintBoard(boolean flag, Graphics g)
    int index= 0;
    g.setColor(Color.YELLOW);
    g.fillRect(0, 80, 700,700);
    g.setColor(Color.WHITE);
    //draws spaces
    for(int y =100; y<700; y=y+100)
    for(int x =10; x<700; x=x+100)
    if(flag==false)
    index++;
    if(index%2==0)
    g.setColor(Color.RED);
    else
    g.setColor(Color.BLACK);
    else
    g.setColor(Color.WHITE);
    g.fillOval(x,y,80,80);
    TextField column =new TextField(10);
    if(flag==false)
    g.setFont(new Font("Times New Roman", Font.BOLD,24));
    g.setColor(Color.YELLOW);
    g.drawString("C",45,245);
    g.drawString("O",145,245);
    g.drawString("N",245,245);
    g.drawString("N",345,245);
    g.drawString("E",445,245);
    g.drawString("C",545,245);
    g.drawString("T",645,245);
    g.drawString("F",145,145);
    g.drawString("U",145,345);
    g.drawString("R",145,445);
    g.setColor(Color.BLUE);
    g.drawString("START",512,548);
    public void paintFinish(Graphics g, int player)
    int index= 0;
    g.setColor(Color.YELLOW);
    g.fillRect(0, 80, 700,700);
    g.setColor(Color.WHITE);
    //draws spaces
    for(int y =100; y<700; y=y+100)
    for(int x =10; x<700; x=x+100)
    index++;
    if(player==1)
    g.setColor(Color.RED);
    else
    g.setColor(Color.BLACK);
    g.fillOval(x,y,80,80);
    public boolean hasWon(Graphics g, int player)
    boolean status = false;
    // check for a horizontal win
    for (int row=0; row<6; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row] &&
    grid[column][row] == grid[column+2][row] &&
    grid[column][row] == grid[column+3][row] &&
    grid[column][row] == player)
    status = true;
    // check for a vertical win
    for (int row=0; row<3; row++)
    for (int column=0; column<7; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column][row+1] &&
    grid[column][row] == grid[column][row+2] &&
    grid[column][row] == grid[column][row+3]&&
    grid[column][row] == player)
    status = true;
    // check for a diagonal win (positive slope)
    for (int row=0; row<3; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row+1] &&
    grid[column][row] == grid[column+2][row+2] &&
    grid[column][row] == grid[column+3][row+3]&&
    grid[column][row] == player)
    status = true;
    // check for a diagonal win (negative slope)
    for (int row=3; row<6; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row-1] &&
    grid[column][row] == grid[column+2][row-2] &&
    grid[column][row] == grid[column+3][row-3]&&
    grid[column][row] == player)
    status = true;
    if(status)
    paintFinish(g, player);
    return status;
    public void place(int player, int column, Graphics g)
    int index=0;
    if(column==1)
    index=place1;
    if(column==2)
    index=place2;
    if(column==3)
    index=place3;
    if(column==4)
    index=place4;
    if(column==5)
    index=place5;
    if(column==6)
    index=place6;
    if(column==7)
    index=place7;
    grid[column-1][index]=player;
    if(player==player1)
    g.setColor(Color.RED);
    if(player==player2)
    g.setColor(Color.BLACK);
    g.fillOval((column*100)+10,(index+1)*100,80,80);
    if(column==1)
    place1--;
    if(column==2)
    place2--;
    if(column==3)
    place3--;
    if(column==4)
    place4--;
    if(column==5)
    place5--;
    if(column==6)
    place6--;
    if(column==7)
    place7--;
    }

    gamefreak1192 wrote:
    I am using an APPLET and i want to use JOptionpane it didnt work when i used it in the paint method. So i want to make a runner to make the program work. I don't know why the Graphics g = new Graphics isnt working PLEASE HELP. Email the revised code to my email at [email protected] URGENT FOR TOMORROW PLEASE HELP. should i have a spearate class for the runner, just email me please if you can help.
    This is bloody ridiculous. You want somebody to do your work for you, you can't be bothered to carry on a discussion here and ask for private email, and you expect somebody else to make your urgency (i.e. lousy time management) their problem. You got big brass ones, kid.

  • Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    I assume you know where your catalogue file (the lrcat file) is located. In the same folder is a previews lrdata folder which you should delete or rename in Explorer, then start LR again.
    If I've made incorrect assumptions above, sorry, and we'll go back over it from the start.
    John

  • I am using NIPCI6229 card i want to generate 5 V in the digital ouput line . it has to be there in the output line only for 100ms please help me

    i am using NIPCI6229 card i want to generate 5 V in the digital ouput line . it has to be there in the output line only for 100ms please help me. aftwer 100ms it has to go to zero state

    hi,
     You can try generating 5V continously for 100ms in a loop later on you can make it low.
    Hope this helps you.

  • HT201270 i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    capriz wrote:
    i have just updated my old 3GS ...
    To what... iOS 7 is Not supported on the 3 GS

  • I've had cydia put on my device didn't like it so deleted ap and now I cant get back into Icloud it's gone very faded in couler the icon in settings. Facebook Twitter and a few others have done the same. I need iCloud back please help!

    Hi please help me I'm useles with these thing. I've had cydia put on my device didn't like it so deleted ap and now I cant get back into Icloud it's gone very faded in couler the icon in settings. Facebook Twitter and a few others have done the same. I need iCloud back please help!

    I'm sorry we cannot help you.
    You have Jailbroken your device.  Apple does not support Jailbreaking and as such having done so has voided your warranty and forfeited any support from Apple and by extension these forums. We are not allowed to discuss Jailbroken devices in any way by the Terms of Service of the forum.
    You will have to find help elsewhere. Ask the person that installed Cydia to restore the phone.

Maybe you are looking for

  • IBooks library vanished after update

    After updating my iOS to the latest version recently, I was dismayed to find everything gone from my iBooks library. Does anyone know if Apple is going to bother to remedy this unpleasant surprise for future updates? I recommend backing up your pdf b

  • Itunes video

    I uploaded a music video from itunes...it shows up in my purchased list, but won't upload to my nano. Any ideas on what I need to do?

  • [SOLVED] X environment won't work

    Hey guys so I am having trouble trying to get my x environment to work. When I type startx it goes to a black screen and then show white and black zig-zag lines and the black ones are pixalated. I checked my log (Greg EE /var/log/Xorg.0.log) and this

  • Screens keep switching automatically

    I have my 13" MBA (Running Mavericks) plugged in via HDMI to an external monitor. I use several applications and have them open in full-screen mode so each has it's own workspace. The problem I'm encountering, seemingly out of nowhere, is that while

  • Creating Actions

    Is it possible to create actions in PSE 9, or do you have to the real Photoshop to do that? I know that I can install them in PSE 9, and I've found them quite useful, but I think it would be fun to create some of my own! Thanks.