Button not working in browser

I am coding a video player in Netbeans 6.8. just find two problems:
1. the browser button not working in browser when I run the project from Netbeans under "run in browser" mode. however under "standard execution" mode, everything is fine.
2. can not run the jar file in the project's dist directory directly. in other word, I can not run the jar file outside of Netbeans.
I appreciate any help. thanks.
Main.fx:
package gui;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.paint.Color.*;
* @author Jethro
var face=Face{};
function run(){
    Stage{
        title: "player"
        resizable:false
        scene: Scene{
            width:800
            height:600
            fill:DARKBLUE
            content: [face]
}Face.fx:
package gui;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaError;
import javafx.scene.input.MouseEvent;
import javafx.scene.media.MediaView;
import javafx.scene.control.ProgressBar;
* @author Jethro
public class Face extends CustomNode {
    public var lbf=LBF{};
    public var enable=true;
    public var mark="play";
    public var sourceOfMedia:String;
    public def player=MediaPlayer {
        repeatCount:MediaPlayer.REPEAT_FOREVER
        onError:function(e:MediaError){
            var er=e.message;
     media : bind Media {
          source: sourceOfMedia
    public def view=MediaView {
            mediaPlayer:bind player
            preserveRatio: true                    
    public def bar=ProgressBar {
            height:10
            width:bind scene.width
            progress: bind
                if(player.media !=null){
                    player.currentTime.toMillis()
                        /player.media.duration.toMillis();
                }else{
                    0.0
    public var play=Button {      
        onMousePressed:function(e:MouseEvent){
            if(enable and player.media != null){
                        mark="pause"; println("playing...");                       
                        sourceOfMedia=lbf.uri;
                        player.play();
                        enable=false;
            }else{
                mark="play";
                player.pause();println("paused...");
                enable=true;
     text: bind mark       
    public override function create(): Node {
        return Group {
            content: [
                VBox{
                    content: [
                        lbf,
                        bar,
                        play,
                        view,
}LBF.fx:
package gui;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.control.TextBox;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.scene.Node;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.control.Button;
import javax.swing.JFileChooser;
* @author Jethro
public class LBF extends CustomNode{
    public var uri:String;
    public var whereis=Text {
        fill:Color.BLUE
     font : Font {
          size: 20
     x: 10, y: 30
     content: "location: "
    public var location=TextBox{
        text:"the song's location"
        columns:40
        selectOnFocus:true
    public var browser=Button {
     text: "Browser"
     action: function() {
                var jfc=new JFileChooser();               
          jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                var val = jfc.showOpenDialog(null);
                if(val == JFileChooser.APPROVE_OPTION) {                   
                    location.text = jfc.getSelectedFile().getAbsolutePath();
                    uri=jfc.getSelectedFile().toURI().toString();
                    println(location.text);
    public var face=Group {
     content: [
          Rectangle {
                    x: 0, y: 0
                    width: 800, height: 50
                    fill: Color.SILVER
                 HBox{
                     width:800
                     height:50
                     hpos:HPos.CENTER
                     vpos:VPos.CENTER
                     spacing:5
                     content: [whereis,location,browser]
    public override function create():Node{
        return face;
}

thanks for your reply but I need more specific operation.
maybe I am not very clear about the problem one. I mean when I run the code in standard mode, if I click the browse button, a window will pop out and I can choose a video file from my local harddisk. but if I run it in "web start execution" mode and "run in browser" mode. the browse button make no response when I click it.
Edited by: Phoenix2006 on Feb 8, 2010 2:35 PM
Edited by: Phoenix2006 on Feb 8, 2010 2:37 PM
Edited by: Phoenix2006 on Feb 8, 2010 2:42 PM

Similar Messages

  • Buttons not working in Browser - Please Help!

    Hello,
    I am designing a website that resizes itself to the browser's windows size. So far, I am having a lot of trouble with IE8, but let's leave that for later.
    My main problem is that buttons work when I test the swf inside flash, but not when in chrome or IE* (didn't test it with Firefox). How is that even possible?
    Any ideas?
    Thank you very much.
    PS: some time ago I've posted a discussion about video performance inside x outside Flash. Again, there were differences between the experience inside the development environment and after published. But my problem now is much worse!

    It seems to be a html issue actually.
    I'll take a look and let you know what I've found out.
    The IE8 resize problem persists, though.
    Thanks!

  • Why does the sync button not work in itunes when my ipod touch is connected

    why does the sync button not work in itunes when my ipod touch is connected?

    It's working for me in Acrobat XI:
    I'd try logging into Acrobat.com from your browser, and log in with your Adobe ID. There may be a problem there:
    workspaces.acrobat.com

  • Exit button not working can u say how to do that?

    Exit button not working can u say how to do that?

    Which version are you using, please the exact number? Exit depends also on the browser, not only on Captivate.

  • In formcentral, why does the "proceed to checkout" button not work? on IE I get error " This content cannot be displayed in a frame...

    In formcentral, why does the "proceed to checkout" button not work? on IE I get error " This content cannot be displayed in a frame. To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame ". On Chrome I get nothing but loading.

    Hi,
     This error is generally specific to Internet Explorer and has two possible causes. The most likely explanation is that your browser has unusual browser security settings. I would recommend you try
    resetting your security settings to defaults (varies by version but all essentially the same). You may also have to turn off
    Protected Mode which is enabled by default on some systems. If you’re seeing this error (or a version of it) outside Internet Explorer, you may have a server-level setting that is preventing your content from being framed.
    Reference:https://social.technet.microsoft.com/Forums/exchange/en-US/1460c5a5-6242-4402-9f6b-bc581bf56478/content-cannot-be-displayed-in-a-frame-when-trying-to-add-item?forum=sharepointgeneral
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Facebook(wall post) location button not working in mountain lion macbook pro 13inch in upper right button

    facebook(wall post) location button not working in mountain lion macbook pro 13inch in upper right button

    No third party applications installed; no gestures changed. It just starts acting up like I described a few times a day. I'll be browsing the internet and go to switch desktops and it suddenly doesn't work.

  • Logitech mouse buttons not working in photoshop cc 2014

    logitech mouse buttons not working in photoshop cc 2014 winds 8.1. Is this a common problem?
    I have updated the latest drivers and have a few buttons programmed with keyboard shortcuts that used to work in previous versions of Photoshop but don't work now.
    Scrolling with mouse in bridge stopped working in cc butI see it is now working.
    any ideas?

    Many Photoshop extensions are not compatible with Photoshop CC 2014 for Adobe removed support for Flash Panels in CC 2014. Many extensions panels are flash based.  Check with the developer to see if their blendmein extension works with CC 2014.
    Adobe does not maintain Photoshop so it backward compatible with prior versions of Photoshop.  This brakes things like action scripts plugins extensions etc. Keep old version of Photoshop installed....

  • IPhone 4 middle button not working

    Having problems with the iPhone 4 middle button not working anyone else with the same problem ?
    Thanks

    i have the same problem. since you're software is already iOS 5.1 go to settings>general> accessibility>the settings after triple click home, i forgot what is it called but that would help.

  • Iphone 4 Home button not working after upgrade to OS 4.3.5

    Iphone 4 Home button not working after upgrade to OS 4.3.5.Please help!!!!!!!!

    It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
    Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt.

  • Iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • Iphone 4 home button not working, called never fixed, then cracked screen before bringing it back again, will they blame the cracked screen if i bring it back?

    I bought an iPhone 4 less than a year ago, then one day the home button randomly stopped working, I bought the warranty so I decided to call in and see what was wrong with it. The girl said that restoring the phone would correct the problem which it did. But it is only a temporary fix, it happens more often now. So I was meaning to call in soon, but the other day my phone fell out of my pocket IN CASE from a foot height and cracked the screen. I nearly threw up. All the years I have had a phone I have never cracked or broken one, strongest screen my ***. Anyway, if I contact them again now will they fix the home button problem? or will they say that the cracked screen is obviously the cause of the home button not working? which it is not!! I don't care about the screen being cracked its not on the actual screen just on the side so its irrelevant to me. Plus I heard it is outrageosly pricey to replace.

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • Iphone 4 Home button not working after upgrade to OS 4.3.1

    I've just upgrade my iphone 4 to OS 4.3.1 and I'm having issues with home button not working. Need to hit it several times before I can close an app or wake the iphone. Any one having this issue?

    It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
    Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt.

  • Iphone 4 volume buttons not working

    iphone 4 volume and mute buttons not working, checked all settings they are all fine and when headphones in it works??? When I take out headphones the volum buttons do not work, when phone rings or text receives only vibrates???? HELP!!!!

    This could be due to some debris or dirt inside the  headphones jack that makes the iPhone think that the headphones are connected even when they are not.
    Try to see if you can clean the jack being very careful, with canned air as sold in electronics store.  Some people have been successful by introducing and withdrawing the headphones jack several times in a row to displace whatever is in there if it is lodged in.
    Avoid introducing anything else like a pointed object.  You could damage the jack.
    If all of this does not work, I would try first resetting the phone by holding the home button and the power button together for about 15 seconds or until the whilte apple appears, then waiting until the phone resets.  If the problem continues after this, take it to an Apple Store to see what they believe should be done.

  • E72 - Ctrl+C and Ctrl+V not working in browser

    yesterday i updated my nokia e72 mobile to latest firmware 31 , after that Ctrl+C and Ctrl+V and Ctrl+A shortcut keys are not working in browser. which have made me feel as bad as typing the same text again and again (usfel in blogging or web messaging).
    ALthough these shortcut keys are working in notes and sms application, but not in browser and Quick office applications (word, ecxel etc).
    Can some one tell , how to fix it. or do i need to wait for next firware update. firmware 31 was released on 31 of march 2010. and today is 26th of May. almost two months have passed, and nokia has not yet released patch for this bug ....
    Nokia, how long i need to wait ?, for this bug fix release.

    (Had to edit because didn't read previous post clearly.)
    I originally thought this was a problem of Quick office 6.2.217 Nokia_S603.2. I think it is a Nokia firmware problem as the previous post had stated.

  • Ipod 4th gen volume buttons not working. Volume bar not showing in music or video apps, not a speaker problem as this works fine when testing built in alarm tones???

    Ipod 4th gen volume buttons not working. Volume bar not showing in music or video apps, not a speaker problem as this works fine when testing built in alarm tones???

    Have you tried the standard fixes:
    - Reset:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore the iPod from backup via iTunes
    - Restore the iPod to factory defaults/new iPod.
    If still problem you likely have a hardware problem and an appointment at the Genus Bar of an Apple store is in order.

Maybe you are looking for

  • Imessage/Text message not working

    My Imessages and text messages will not go through. I have to turn off the phone and restart it the Imessages will then send as a plain text. I am also not receiving any texts. I know this based on the angry phone calls and Instant Messages I am rece

  • Does the LG 300 W Smart Sound Bar support my iPod nano?

    Does the LG 300 W Smart Sound Bar support iPod nano?

  • Division wise item

    Dear Experts, My client is having divisions and they have a seperate product list for each Division as well as a seperate customer list for each division. In accounts, segmentation is used based on divivsions and seperate number series are defined fo

  • Movie thumbnail previews in Coverflow and Grid view...not there

    I'm using Snow Leopard and have both QT-X and QT 7 Pro on my MacBook Pro. In Finder, I have a folder containing several movie types including mpeg, avi, mov, qt, m4v, mp4, flv and wmv I've noticed that I don't see thumbnail previews for any of these

  • Error in creating Connection Object and Device Location

    Hi , When i am creating Connection Object and Device Location , system is giving dump . all other object are working fine. the error is gievn below : Error in reading table TE130. i checked this the table , its have no entries ( mainly field ISTYP is