JNLP added a status bar ?!

My app downloads and executes as expected, EXCEPT THAT
the jnlp process has added what looks like a status bar at the bottom of the
application window, containing the phrase: 'Java Application Window'.
I checked my source code carefully, and the status bar and its content
do not come from my swing code.
Does anybody know why jnlp would do this and how one turns it off?
Bill.

AWT adds this banner to all windows created by CodeSources without the awt permission "ShowWindowWithoutWarning".
The sandbox used in plugin applets and java web syart applications does not by default have this permission.
If you sign your application and request <all-permissions> in the jnlp file this will go away.
Also if you use Java Web Start 1.5 (beta 1 has been released) the Java Control Panel will have a checkbox in the Advanced tab, that will allow you to remove this banner (ie: add the awt permission to the default sandbox.)
/Dietz

Similar Messages

  • Should a Status Bar be in the Root Pane or Content Pane?

    Hello, I wonder if you can help...
    Should a status bar be built into a JFrame (much like a JMenuBar, by extending JFrame and JRootPane along with its layout manager)?
    I have created a status bar using the method above, but it seems to be more complex than it need be; so I am wondering whether to simply add it to a JFrames content pane.
    Advantages of extending JRootPane and building the status bar as part of a frame:
    1. It allows the frames content panes south region to remain unoccupied, and thus will not conflict with a JToolPanes positioning.
    Advantages of adding the status bar to the content pane south region:
    1. Keeps the design nice and simple, so no knowledge of the root pane need be known;
    2. We can use composition (rather that inheritance) to define the frame and its parts.
    All comments are welcome.

    Hi,
    ( I search for iChat questions when I have finished in the iChat Forum)
    So the menu bar reads iChat, File,  Edit,  View, Buddies, Video, Window and Help
    There is no Buddy List open.
    There is no other window for iChat open.
    In the iChat Menu you only have access to Status.
    Is an item ticked in the list ?
    Is this a green (Available item) or  Red ( an Away one) ?
    Can you access the Accounts option ?  (Sitll in the iChat Menu)
    Is anything in here ticked ?
    In the Window menu any Logged in account should appear in the list  (Between the Next Chat and File Transfer items)
    It would be useful to know which version of iChat this is.
    If no account is ticked (iChat Menu > Accounts) or not showing in the Window Menu, plus you cannot determine the Status and you cannot access the Preferences then you need to access your Home Folder/Library/Preferences
    As the Library in the Home Holder is Invisible in Lion you will need the Finder's Go Menu > Go to Folder option  (you can use it in earlier OS versions if you want)
    Type in:-
    ~/Library/Preferences
    Find the file called com.apple.ichat.plist
    Drag it to the Trash and Restart iChat.
    This will lose all the settings in iChat that you have changed from Defaults but there is no way around this.
    9:23 PM      Saturday; August 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Status bar in web browser

    I'm adding a status bar to a web browser and I've run into a little problem. I can't get the status bar to change to reflect the url the user has the mouse over. I need to know if there's an event listener that I can use to do this. Keep in mind that a mouse listener is usually only used to signal when the pointer goes over a control (if you're using the mouseover method that is) rather than when the pointer goes over a link. What would you suggest? Thanks for any help in advance. :)

    It isn't an applet, it's an application and it's a web browser. I want to have a status bar at the bottom of the web browser and I want the status bar to function like in any other browser(it changes when you move the pointer over a link and when the browser is getting a page). Specifically, I need to know if there's an event handler that can tell me when a user moves the mouse pointer over a hyperlink. I am using a JEditorPane to display the web pages.

  • [SOLVED] Problem with adding package update count to dwm's status bar

    Following http://www.andreascarpino.it/blog/posts … s-part-ii/, I added:
    $ crontab -l
    */10 * * * * ~/bin/tempdb
    Along with
    #!/bin/bash
    # ~/bin/tempdb
    fakedb=/dev/shm/fakepacdb
    realdb=/var/lib/pacman
    [[ ! -d $fakedb ]] && { mkdir -p "$fakedb/sync" || exit 1; }
    [[ ! -L $fakedb/local ]] && { ln -s "$realdb/local" "$fakedb" || exit 2; }
    exec fakeroot pacman --dbpath "$fakedb" -Sy
    pkgs=$(pacman --dbpath "$fakedb" -Qqu | wc -l)
    aurpkgs=$(cower -udf 2> /dev/null | wc -l)
    unset msg1
    unset msg2
    unset packages
    msg1="pacman: 0"
    msg2="aur: 0"
    if [[ ${pkgs} -gt 0 ]]; then
    msg1="pacman: ${pkgs}"
    fi
    if [[ ${aurpkgs} -gt 0 ]]; then
    msg2="aur: ${aurpkgs}"
    fi
    updb="UPDB: ${msg1}, ${msg2}"
    export updb
    The problems is with being able to export the variable updb, because exporting only exports to subshells. I also have my ~/bin/dwmstatus script:
    #!/bin/bash
    sep=" | "
    volsep="VOL"
    datesep="DATE"
    timesep="TIME"
    vol=$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')
    volstat=$(amixer get Master | tail -n 1 | cut -d' ' -f 8-)
    sdate=$(date +"%B %d")
    stime=$(date +"%r")
    if [[ ${volstat} == "[off]" ]];
    then
    vol="--%"
    fi
    out="${updb} ${sep} ${volsep} ${vol} ${sep} ${datesep} ${sdate} ${sep} ${timesep} ${stime}"
    xsetroot -name "${out}"
    I only want the checking of updates to occur every few minutes (for now I tried 10), and just using the exported variable that contains the whole
    "UPDB: pacman:3, aur:1",..
    I'm not exactly sure how to fix my hacked-together scripts. When I simply run the tempdb script, it doesn't do much exept for updating to the fake database, but being able to use the updb variable has not worked yet. I also tried sourcing the script, but that just quits urxvt when running in dwm, and it logs me out when sourcing from plain X.
    I guess my main question is: what is the best way to show updates from the dwm status bar, or how can I fix what I am trying to do now?
    Last edited by wolfcore (2012-03-17 00:21:47)

    jasonwryan wrote:
    I use this:
    crontab -e
    @hourly /home/jason/Scripts/checkupdates
    grep ups Scripts/dwm-status
    ups(){
    ups="$(/tmp/aurupdates | wc -l)"
    if [ $ups = 0 ]; then
    echo "0"
    else echo -en "$ups"
    fi
    Script is keenerd's from here: http://www.mail-archive.com/pacman-dev@ … 08405.html
    Okay, I see it. But your ups() function checks /tmp/aurupdates; how do you check for AUR updates? I looked at your repos, and saw
    pac()
    pup="$(pacman -Qqu --dbpath /tmp/checkup-db-jason/ | wc -l)"
    if [ $pup == 0 ]; then
    echo "0"
    else
    echo -en "\x05$pup\x01"
    fi
    This is what you use along with keenerd's checkupdates, right?

  • How can I implement a status bar at the bottom of a resizable application?

    Hello all,
    I am a JavaFx newbie and I am implementing an application (a Sokoban game), with a menu at the top of the frame and a gaming area covering the rest of the frame. To support the game, I have to load images at certain positions in the gaming area.
    The game also includes a level editor with another menubar and where images are set to other positions.
    I implemented this in another view, swiching from the game mode to the level editor mode and vice versa is just done by setting the other view visible. Up to now this works, here the important statements building these details:
    Group root = new Group();
    gameView = new Group(); // for gaming mode
    le_view = new Group()   // for level editor mode
    MenuBar gameMenubar = new MenuBar();
    Menu menuGame = new Menu(bundle.getString("MenuGame"));
    ... building the menu items and menues ...
    gameView.getChildren().add(gameMenubar);
    ImageView buildingView[][] = new ImageView[22][22];
    for (nCol = 0; nCol < 22; nCol++) {
        for (nRow = 0; nRow < 22; nRow++) {
            buildingView[nCol][nRow] = new ImageView();
            buildingView[nCol][nRow].setX(nCol * 26 + 5);
            buildingView[nCol][nRow].setY(nRow * 26 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
    gameView.setVisible(true);
    root.getChildren().add(gameView);
    ... same stuff to build the le_view ...
    le_View.setVisible(false);
    root.getChildren().add(le_View);
    Scene scene = new Scene(root, 800, 600, Color.CORNSILK); Now I want to introduce a status bar at the bottom of the frame, which of course has to follow the bottom of the frame, if it is resized. And of course the menu and the status bar should not grow vertically, if the height of the frame is increased.
    The implementation seems to be easy with StackPane for the frame and one BorderPane for each mode.
    For the first step I only tried implementing the game mode with only one BorderPane (just setting the menu, the gaming area and the status bar each into a HBox and setting these three HBoxes at the top, into the center and at the bottom). I also tried this via GridPane and via VBox; I always get any erroneous behaviour:
    Either the menubar is visible, but the menus do not pop up the menu items, or the anchor point of the menu and of gaming area are set 100 pixels left of the left frame border and move into the frame when the frame width is increased, or the menu is set 20 pixels below the top of the frame, or HBox with the menu grows when the frame height is increased, so that the anchor point of the gaming area moves down.
    Can you describe me a correct construction of such a frame? Thanks in advance.
    Best regards
    Gerhard

    Hello Gerhard,
    Glad the code helped, thanks for a fun layout exercise.
    For the draft code I just pulled an icon off the internet over a http connection.
    If you haven't done so already place any icons and graphics you need local to your project, so that resource lookups like:
    Image img = new Image("http://www.julepstudios.com/images/close-icon.png");become
    Image img = new Image("close-icon.png");then performance may improve.
    Another possible reason for your performance problem could be that when you use a vbox, the vbox content can overflow the area of the borderpane center and might be sitting on top of the menu pane, making you unable to click the menu (which is what happens to me when I try that with the draft program with the vbox wrapping mod, then resize the scene to make it smaller). This was a trick which caught me and the reason that I used a Group originally rather than a vbox. I found a vbox still works but you need to tweak things a bit. The trick I saw was that the order in which you add stuff to the borderpane is important. The borderpane acts like a stack where the last thing added floats over the top of everything else if you size the scene small enough. For your project you want the menu on top always, so it always needs to be the last thing added to the borderpane, but when you swap in the level pane for the game pane, then back out again, the game pane can end up on top of the menu which makes the menu seem like you can't click it (only when the scene is sized small enough). It was quite a subtle bug which took me a little while to work out what was happening. For me the solution was to add just one vbox to the center of the border, and then swap the game pane and the level editor in and out of the vbox, that way the center of the layout always stayed behind the menu bar and the status bar.
    I added some revisions to reflect the comments above and placed some comments in the code to note what was changed and why.
    public class SampleGameLayoutRevised extends Application {
      public static void main(String[] args) { Application.launch(args); }
      public void start(Stage stage) throws Exception {
        final BorderPane gameLayout = new BorderPane();
        final Group gameView = new Group();
        final MenuBar gameMenubar = new MenuBar();
        final Menu gameMenu = new Menu("Mode");
        final VBox centerView = new VBox();
        centerView.setStyle("-fx-background-color: darkgreen");  // we set a background color on the center view to check if it overwrites the game menu.
        MenuItem playGameMenu = new MenuItem("Play Game");
        MenuItem levelEditMenu = new MenuItem("Edit Levels");
        gameMenu.getItems().add(playGameMenu);
        gameMenu.getItems().add(levelEditMenu);
        gameMenubar.getMenus().add(gameMenu);
        final StackPane levelEditView = new StackPane();
        levelEditView.getChildren().add(new Text("Level Editor"));
        ImageView buildingView[][] = new ImageView[22][22];
        Image img = new Image("http://www.julepstudios.com/images/close-icon.png");  // use of http here is just for example, instead use an image resource from your project files.
        for (int nCol = 0; nCol < 22; nCol++) {
          for (int nRow = 0; nRow < 22; nRow++) {
            ImageView imgView = new ImageView(img);
            imgView.setScaleX(0.5);
            imgView.setScaleY(0.5);
            buildingView[nCol][nRow] = imgView;
            buildingView[nCol][nRow].setX(nCol * 20 + 5);
            buildingView[nCol][nRow].setY(nRow * 20 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
        final VBox statusBar = new VBox();
        final Text statusText = new Text("Playing Game");
        statusBar.getChildren().add(statusText);
        statusBar.setStyle("-fx-background-color: cornsilk"); // we set a background color on the status bar,
                                                              // because we can't rely on the scene background color
                                                              // because, if the scene is sized small, the status bar will start to overlay the game view
                                                              // and if we don't explicitly set the statusBar background the center view will start
                                                              // to bleed through the transparent background of the statusBar.
        gameLayout.setCenter(centerView); // we add the centerview first and we never change it, instead we put it's changeable contents in a vbox and change out the vbox content.
        gameLayout.setBottom(statusBar);
        gameLayout.setTop(gameMenubar);   // note the game layout is the last thing added to the borderpane so it will always stay on top if the border pane is resized.
        playGameMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(gameView);
            statusText.setText("Playing Game");
        levelEditMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(levelEditView);
            statusText.setText("Editing Level");
        playGameMenu.fire();
        Scene scene = new Scene(gameLayout, 800, 600, Color.CORNSILK);
        stage.setScene(scene);
        stage.show();
    }Other than that I am not sure of a reason for the slowdown you are seeing. In my experience JavaFX has been quick and responsive for the tasks I have been using it for. Admittedly, I just use if for a bunch of small trial projects, but I've never seen it unresponsive for a minute.
    - John

  • Removing the 'Warning Java Applet' Status Bar

    Hi,
    I've written an applet that does not require access outside the sandbox so doesn't need signing. However, it pops up an instance of Window, and because it's not signed the window has a status bar across the bottom which says 'Warning Java Applet' or something similar depending on the browser. Is there any way to remove this status bar without signing the applet or changing the security settings of the browser. I guess it must be added to the window so maybe it's just a component that can be removed, but how?
    Thanks in advance

    Today the Security Warning sign appeared at the bottom of my computer screen - how do I get rid of it. I do have Java whose icon used to be in the lower right hand section of my screen - along with all the other icon programs that I have.
    Now the icon is no longer down on the bottom right of the screen, but in the middle with a Security Warning -(the wording) next to the jave icon.
    This is really annoying me - how can I get rid of it, and - why did it appear here?
    Anxiously awaiting your reply.
    Donna

  • IPod Touch Graphics Weirdness - Status Bar mirrored at bottom of screen!!!

    Okay, this is VERY weird and I have no idea what's going on - This morning when I woke up, I grabbed my trusty iPod Touch (4th Gen, 32GB with iOS 5) to check my calendar and noticed that the Status Bar (if I'm calling it the right thing - the white bar at the very top of the screen that shows the time, battery charge, WiFi signal,etc) was not only at the top - but also at the BOTTOM of the screen too!
    The mirrored Status Bar has the correct time and battery life as the top and the time updates just as it should. I can also see the lock icon when I first turn it on. However, to the extreme left the bottom bar is sort of "washed out" and is so white that I can't make out the word "iPod" that shows on the top bar. In fact, it's also sort of translucent as I can see the dock, icon name and part of my wallpaper behind/thru it! I also just realized something else weird - if I pull down the Notifications panel, I can see the notification panel sort of "scrolling" thru the bottom Status Bar!!! I hope I'm explaining this well enough - but it's like..I dunno, like the ideo memory for the top of the screen is being mirrored over the bottom of the screen too - I can see what should be there as well, it;s like it's overlayed or something. The Notification panel is especially weird since it totally obsured the top status bar as it's being pulled down - and this is exactly what the bottom status bar area shows me - what's in the section in the top bar is prescisely what is showing in the bottom bar section!!!!
    It stays displayed along the bottom no matter what app I'm in, even a full screen video, game, lock screen, etc; nor does it disappear when rotating to landscape mode - it still stays in the exact same place (tho in landscape it's now on the right side as it were). I have soft reset, synched, etc but it wil not go away. As I said, I deleted all recently installed packages, but I didn't install anything the night before (remember I just found it this way this morning) - i.e. I wasn't doing anything weird or experimental or anything remotely like that with my beloved little iPod (never JailBroken it or any of that stuff - am happy as it is and never been tempted to do anything like that to it). I also have never used any of the AV Out cables or whatever they are called that allow you to mirror an iPod screen on a TV or monitor or whatever - never used anything but the sync cable (now at my sisters), my Belkin charge auto charge cable, and that's it (I'm mentioning all this since I see other people asking this sort of thing for other problems when I was trying to find anyone else experiencing/ed this issue).
    I have not tried a factory restore yet, and wanted to post here before I go that route to see if this is maybe something Apple has seen before and can offer a quick and easy fix. Otherwise I'm guessing a hard/factory reset is the only way to go - I'm a bit worried about this since (of course) my sync cable is no longer here - gave it to my sister the last time she was in town and have just been using my charge cable (no sync capabilities, just power) since I don't really need it with iOS5's wonderful WiFi Sync. I do use iCloud - but if I hard reset/factory reset, will iCloud restore the synching info so I can sync all my apps and music & videos back via iTunes from my Laptop, or will I need to buy another sync cable? IF factory reset is the only way, please let me know (anyone that knows!) what I'm in for in regards to restoring from iCloud if anyone here is experienced with that. I know my non-iTunes music and videos are not backed up in the Cloud, but as long as it restores the ability to sync wirelessly with iTunes on my Laptop that's fine. Asuming, of course, that a factory reset will even fix this Status Bar oddity - I'm really afraid it means my little iPod's internal board is going fry-happy or something awful like that. :-(
    I tried taking some screen snapshots (home + power off) to post, however the camera roll just displays a standard beautiful looking screen, no double bar - not sure what that indicates. However after some fiddling and emailng to myself,  I do have a couple pics posted below. I apologize for the lack of quality - I took them - and don't laugh - with my Android Phone (yes, I have every intention of upgrading to an iPhone 4S as soon as I can - having a bit of enforced financial conservatism going on at the present unfortunately - which is one of the main reasons I'm so worried my beloved iPod Touch 4 is having issues as it's either very close to warranty expriration and can't afford another right now, and really don't want to have to rely on my Android Phone for everything I do on my iPod Touch - there truly is no comparison!).
    If anyone has any ideas or has seen something similar please let me know! I did search the Apple forums prior to posting this, and even googled the web but could find nothing like this ever happening to anyone else. I absolutely love my iPod Touch and would be uterly lost without it, so I'm hoping with all my might that this isn't some sign of a bad board or something in my beloved little beautiful iPod Touch!
    Thanks in advance for any assistance, suggestions, etc!!!
    NewtonDKC
    Message was edited by: NewtonDKC (embarrassing spelling errors corrected and a couple additional discoveries added!) :-)

    I understand the various methods - I was just worried because I've never restored via iCloud - from the limited experience I've had thus far, I'm impressed! But of course if Apple does it, it's going to be the best experience possible! :-)
    And as you may have guessed from my now having iCloud restore experience, it is due to me going ahead and trying a reset to factory settings/wiping it clean. And unfortunately - the bottom bar is STILL THERE! <much argghhing! and %^$#@*&^%$'ing loudly>
    I did try wiping it a couple of times, but no joy. At this point, I'm guessing this means there's something majorly wrong with the graphics subsystem and/or main board? It's not a screen issue as it's working fine - in fact it's working double-time displaying two things at once - dimensional transcendentalists take note! <grin>
    So unless anyone else has some fantastically bright ideas, I'm guessing this means I need to call Apple next? I'm guessing one of these pages has the appropriate contact info - I'm just not at all looking forward to being without my favorite gadget in the history of gadgetdom (and as you can tell from my username, I've been a fan of Apple Gadgets for quite awhile now!).
    Anyone know if Apple offers any advanced replacement options? Or if there's anyway to tell if my Touch is stil under warranty? I can't remember the exact purchase date but probably coming up very soon - have they been out a year? Sorry if thee questions are silly, as I said, I'm a newbie to Apple Support - first Apple product I've ever owned that broke!
    Thanks for any info for anyone coming in late to the fun, and/or for any tips on who/what to call and ask about.
    Wish me luck! :-0
    Newt

  • Weird message below status bar - icons move down and almost touch dock

    Ever since installing 3.0 on my 3g iphone I've had a weird problem. Roughly around an hour or so after the phone is on, the icons on the page move down (about an 1/8 of an inch) and the words "Revisar ADN" appear below the status bar. A little bit later the message will go away but the icons will remain shifted down. The only way to fix it is to turn the phone off and back on again, but again, roughly an hour later it happens again.
    I have restored several times but to no avail.
    Some more info about the situation: I purchased and activated the phone in Guatemala (where I live) and my carrier is Claro. The words "revisar ADN" mean "check DNA" in english. The phone is not jailbroken or anything like that. Even though the carrier is Claro, the international settings are in English with the exception of the spanish language added to the keyboard. I've had the phone for about 6 months and on 2.2.1 never got this message.
    Any help would be appreciated.

    Thanks so much for the information and the investigation on this (I saw you posting in other forums as well). Through some trial and error I think things are working finally. Here is the story for anyone else that might suffer from the same problem.
    I originally tried the SIM trick and took the SIM out, put it into another phone, added a contact, and then put the SIM back in. This unfortunately did not work. A few hours later the icons had moved again. I then noticed that the contact that I had added to the SIM was not in my iphone address book, so I imported the contacts from the SIM (Settings>Mail, Contact, Calendars>Import Sim Contact), hoping that this would fix the problem. That didn't work either. I turned the phone off and on again, and that didn't work either.
    Then I began to look into the "Claro Contactos" issue, and went looking for the SIM Applications (Settings>Phone). Now, I am almost positive that when I looked here earlier that day the SIM Applications button was not there. Maybe it was, but I'm thinking that by putting the chip into another phone and then putting it back into the iphone, this "unlocked" this feature. Or maybe it was the simple act of taking it out and putting it back in. Either way it was there now. I had never heard (or turned on) Claro Contactos so I went hunting for where to turn it off. After finding it "Utilidades Claro" it popped up a message asking if I wanted to turn it on. Obviously I had not used the feature before so I couldn't turn it off like the previous post had suggested. So I did the opposite and turned it on. I then touched the button "Respaldo Contactos" to back up that one contact to this service and then touched the button "Respaldo Automatico" and told it NOT to back up automatically. After doing all of this, I turned the phone off and on again, and now everything has been fine. It's been a full day and my icons are right where they should be.
    I mention the process because I'm not totally convinced that just by turning the Claro Contactos on was the issue. I think the whole process is the solution. Maybe someone else that has the same issue can try the process, but backwards and see if just switching the Claro Contactos on (or off) solves the problem.
    Thanks for the help and I hope this helps whoever else might have the same problem.

  • Pages 5.0 - Status bar current page & page count?

    How do I show the status bar showing current page and page count? I do not need to see the full thumbnail bar.
    In all prior versions of pages, I could look at the bottom of my window and see my current page and how many pages are in my document.  Now, I glance to the bottom, and I have no idea.  I cannot find any way to turn this on and turning on the thumbnails view does not show this to me at-a-glance because I have to scroll all the way down (through documents hundreds of pages long) to find out how many pages I currently have.
    Please, what am I missing here, how can I make this show up again?
    I mean a quick display here, not adding the page count and numbers to a documents footer.  Although, that would be one way for me to solve this issue, but I do not always want that.

    I wrote a short AppleScript solution that informs about the current document page as a pop-up dialog. This is for Pages v5+ only. I created and saved an Automator Application named CurrentPage to my Desktop. Providing that Pages is running, it will produce the dialog shown in subsequent Automator screen shot.
    Double-click /Applications/Automator and choose New Document, Application, and Choose. Follow the Utilities > Run AppleScript (not Shell Script as shown), and drag Run AppleScript over into the larger window and drop it. Select all of its contents and remove them -- this is just boilerplate.
    Copy and paste the following AppleScript into the now vacant Run AppleScript workflow window. Click the hammer, and File > Save... pick a name, and location to save the application where it is handy. Quit Automator.
    Code:
    -- P
    -- Produce formatted dialog of document name, current page, and page count
    -- Pages v5+ only. Works whether typing in document or scrolling pages.
    -- VikingOSX, June 2014, Apple Support Community - Pages for Mac.
    if not ApplicationIsRunning("Pages") then
      display dialog "Pages must be running to use this utility."
      return quit
    end if
    tell application "Pages"
      activate
      tell front document
      set diagTitle to "Current Document Page"
      set docName to (name as text)
      set thePage to current page
      set curPage to 0
      set pageCnt to page count
      set pnList to its page
      repeat with ndx from 1 to count of pnList
      if thePage is equal to item ndx of pnList then
      set curPage to ndx
      end if
      end repeat
      set vformat to "Document: " & tab & tab & docName & return ¬
      & "Current Page: " & tab & curPage & return ¬
      & "Total Pages: " & tab & tab & pageCnt
      end tell
    end tell
    display dialog (vformat as text) giving up after 15 with title diagTitle
    on ApplicationIsRunning(appName)
      tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
      return appNameIsRunning
    end ApplicationIsRunning

  • Status Bar

    Hallo.
    I am writing a Java program that comprises several JInternalFrames to display info. However, the main outer JFrame needs a status bar of some sort, e.g. the one that says "Done" at the bottom of your browser. I have added a JLabel to South of the BorderLayout but it doesnt show. If I remove the desktop thing that they say has to be set for the internal frames to show, the label is seen. How can I work around this for the label to be seen, independent of the JInternalFrames?
    Thanks.

    when I try to do this:
    setContentPane(desktop, BorderLayout.CENTER);
    this is the compiler error that I get:
    setContentPane(java.awt.Container) in javax.swing.JFrame cannot be applied to (javax.swing.JDesktopPane,java.lang.String)
    a part of the code is:
    //snip---
    // this method makes it possible so that the internal frames are visible
         desktop = new JDesktopPane(); //a specialized layered pane
         setContentPane(desktop, BorderLayout.CENTER);
    desktop.setBackground(Color.GRAY);
         getContentPane().add(statusBar, BorderLayout.SOUTH);
    // give this window a title, size and location
    setTitle("Spin Master");
    setDefaultLookAndFeelDecorated(true);
    setSize(900, 650);
    //snip---
    This compiles well, but no status bar gets shown. However, on commenting out sone few lines:
    //snip---
    // this method makes it possible so that the internal frames are visible
         desktop = new JDesktopPane(); //a specialized layered pane
         //setContentPane(desktop, BorderLayout.CENTER);
    desktop.setBackground(Color.GRAY);
         getContentPane().add(statusBar, BorderLayout.SOUTH);
    // give this window a title, size and location
    setTitle("Spin Master");
    setDefaultLookAndFeelDecorated(true);
    setSize(900, 650);
    //snip---
    One sample method I use to add the internal frames is:
    private void showAllScores()
    ScoresDisplayer shower = new ScoresDisplayer();
    shower.setVisible(true);
    shower.displayAllScores();
    desktop.putClientProperty("JDesktopPane.dragMode", "outline");
    desktop.add(shower);
    try
    shower.setSelected(true);
    catch (java.beans.PropertyVetoException bean_error)
    showInternalFrameDisplayErrorMessage();
    The status bar gets displayed fine, but no internal frames are shown. All I can think of doesnt bear fruit...

  • Status Bar Disappears in Mail App

    Vonage sends me email attachments containing my voicemails in WAV (G.711) format. Although, G.711 encoded WAV's are very popular in telecom I understand they are not supported on the iPhone. I now convert these WAVs to MP3 and forward as an email attachment to the iPhone.
    When I try to play the WAV attachment from the email app, the status bar disappears (only when in the mail app).
    When I play the MP3 attachment from the mail app, the status bar no longer displays correctly (only when in the mail app).
    I must power off and power on my iPhone for the status bar to return when in the mail app. I've restored by iPhone multiple times and the problem still occurs.
    Email me, [email protected] and I'll forward the email containing the attachments.
    How can I fix this?

    This blog post discusses when support for MP3 and WAV email attachments was added by Apple. The supported was added in 1.1.1.
    http://www.boygeniusreport.com/2007/09/27/iphone-now-supports-mp3-and-wav-attach ments/
    The screen shot even shows what the email attachment looks like.
    It also appears that the status bar may have disappeared in that screen shot too.
    So, MP3 and WAV email attachments are supported.
    Message was edited by: Bog

  • Trapping KeyEvents anywhere in a JFrame for a status bar

    Hi all,
    There are a few examples of how to implement a status bar in the archives, but I haven't seen anything that tells you how to trap KeyEvents (e.g. pertaining to CapsLock etc.) which occur anywhere in a JFrame: once you start adding focusable components (particularly but not exclusively JTextComponents) to a JFrame the JFrame itself is often not sent the KeyEvents, so a rudimentary addKeyListener() is not the answer.
    Could this involve the use of KeyboardFocusManager or sthg? NB to experts: I have read the tutorial on the focus subsystem to no avail. The key seems to be to trap the event thread in some way, perhaps??
    All help greatly appreciated...
    Mike

    Add a AWTEventListener on Toolkit.getDefaultToolkit() with appropriate mask. See javadocs of addAWTEventListener method.

  • Status Bar in Mail 3?

    With looking at the photos of Mail 3 I don't see a status bar (at the bottom or elsewhere), has it been mentioned if the status bar will be added back?

    Hi Daniel,
    Not certain, but this can fix myriad Mail problems...
    Safe Boot from the HD, (holding Shift key down at bootup),  it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move this folder & file to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.
    If that doesn't do it and you can afford to redo all your Rules, try these & reboot...
    /Users/YourUserName/Library/Mail/MessageRules.plist
    /Users/YourUserName/Library/Mail/MessageRules.plist.backup
    Note, in 10.5 & up /Users/YourUserName/Library/Caches/Mail/ does not exist.

  • Why is the status bar/ add-on bars missing ?

    I recently refreshed my Firefox after 37 installed and crashed every time after. Once I loaded I added Status-4-Evar and the Bar is not showing up.
    So I tried loading two other add-on bars Zero and I know several of of my add-ons use that.
    YES i did the rename the localstore.rdf and xulstore.json and tried that step I tried also to disable extensions too to see it it would help and nothing.
    So anyone know how to solve this?

    ''the-edmeister [[#answer-715398|said]]''
    <blockquote>
    If you '''are''' using Classic Theme Restorer ''(as shown in your first screenshot)'', you don't need any add-on bar extensions and S-4-E really isn't needed either to get the Add-on Bar back.
    All you need to do is enable the Add-on Bar via a right-click on the Titlebar or in View > Toolbars from the Menu Bar.
    CTR and S-4-E so work together quite well, but not sure about installing any other Add-on Bar extensions with either - probably going to create a conflict.
    </blockquote>
    Yes I tried disable then and removed them but the Status bar does not show.
    Funny thing it does show when starting up Firefox and Closing they appear for brief moment. And it does show many of my add-on on the bar I need to use. :/
    is there something blocking them or about:config option I need to change?

  • [SOLVED]Gnome: No network icon in the status bar

    So fresh install and no networking icon in the status bar.
    I also opened the network connections program and it didnt show any connections. I am using eth0 to write this.
    This suggests to me that a daemon hasnt been started (but doesnt necessarily explain no icon in status bar)
    here is the daemon section of my rc.conf
    DAEMONS=(hwclock syslog-ng network netfs crond networkmanager dbus gdm)
    i added network manager as a previous attempt (on advise of someone elsewhere on the internet(cannot remember where lol))
    Thanks.. I have nearly got my system how I want it (minus software i havent installed yet)
    Sorry if i have created a duplicate thread
    Last edited by olig1905 (2012-01-21 17:33:47)

    Thanks to both of you.
    I had already noticed the redundancy of network which was added in the install however hadnt considered the ordering
    wonder wrote:Did you really read the wiki?
    This is pretty much all i have seen people saying at the end of their posts on here. I agree with the point you have made, however i have been on the wiki all day, conisdering this is a newbie forum it is to be presumed that it is a pretty new installation. Therefore the user does not have time to read the entire wiki. As i said i have been on the wiki all day and used it countless times and have found it invaluable, so im only posting here when i am unable to find answers there.
    That aside this is a wonderfully helpful community so HI

Maybe you are looking for

  • How to get KTOPL for a given BELNR

    Hi all you experts! I am codding a simple report that obtains some data from BSAK including BELNR and SAKNR. I need to show in this report the description of SAKNR. I know that I can get it from table SKAT but in order to do that I need to know SPRAS

  • Hierarchies in BW : how to identify if ti's coming from R/3

    Hello all ! I would like to know if there's an easy way to identify if a hierarchy has been created directly in BW or if it's coming from R/3. Thanks in advance

  • CHILD form error FRM-30100: Block must have at least one primary key item.

    Hi friends, I have increased the DML array of the child block from 1 to 10, but it throws me error: FRM-30100: Block must have at least one primary key item. Block: CEC_ADJUSTMENT_RECON Form: CEC_ADJ FRM-30085: Unable to adjust form for output. How d

  • Is any SMTP server included in the Application Server

    Hi, My system is configured to send emails using an external SMTP server, however the initial configuration of it was using it's own IP (localhost). Since I'm new at SAP, I would like to know if by any chance there is already an SMTP server in the sy

  • CREATE OUTBOUND DELIVERY WITH ORDER REFERENCE

    Hi All, I am working on VL01N Tcode for "CREATE OUTBOUND DELIVERY WITH ORDER REFERENCE", where Return Check serial number of incoming material in case of sales return and compare against serial number in outgoing delivery. If the serial number doesnu