How to update status bar?

Sorry if this question is too simple for most. I have only been starting to learn Java for about a week from scratch with almost no programming experience.
I have created a GUI application and for the sake of it there are three .class files.
GuiFrame - the main application Frame
GuiMenuBar - a happy little MenuBar that sits at border.NORTH of GuiFrame.
GuiStatusBar - a JLabel that I intend to use to display messages to the user at border.SOUTH of GuiFrame.
So far this all works quite happily. As my next exercise I wanted to send messages to the StatusBar when I select a menuitem. For examples I click on Save - the StatusBar tells me "You have clicked on save".
I don't know how to do it when the bit of GUI I am trying to send a message to is part of a different class ?
Any pointers to particularly good and simple examples ? Please.
Douglas.

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class Example extends JFrame implements ActionListener{
    JLabel lblStatus = new JLabel("");
    JMenuItem mniSave = null;
    public Example(){
        mnuFile = new JMenu();
        mniSave.addActionListener(this);
    public void actionPerformed(ActionEvent e){
        if (e.getSource() == mniSave)
            lblStatus.setText("You have clicked on Save");
        else if (e.getSource() == btnExit)
            System.exit(0);
}

Similar Messages

  • HT4059 I cannot open some of my books I purchased. They're locked like awaiting an update. There's a blank update status bar on the books. What's wrong?

    I cannot open some of my books I purchased. They're locked like awaiting an update. There's a blank update status bar on the books. What's wrong?

    An "other" larger than about 1 1/2 GB indicates corrupted files.
    What is the Other on my iPhone and How to Remove It
    What is "Other" and What Can I Do About It?
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
      iTunes: Restoring iOS software

  • IOS 6 update - status bar goes a bit, then shuts down and its hot

    Updating to IOS 6. I am at the point where I see a black screen with a white apple and a status bar under the apple. The status bar barely moves but it is currently at about 35%. After a bit, it goes blank and then it resumes the same process.
    I have it plugged into my PC so it has power.
    Is this normal? It's been happening for about 20 minutes now. Plus I can probably turn my heater off since the iPhone seems to be providing me warmth. Is it supposed to get hot during an update?
    How long before I cancel the IOS update and probably my Verizon contract for this phone and any/everything to do with Apple products?

    Just needed to wait for it to get done. Apparently, that is how long an update happens
    Anyway, issue resolved.

  • NEED HELP ON HOW TO TURN STATUS BAR OF A JSF PAGE OFF

    I need a pop-up within my application where a staff can select his HOD(An hyperlink named HODNAME with text SELECT ) and on click it shows a pop up of a page (allstafflist.jsp) which has table and contains all staff. It has Select link which return name of the HOD to the parent page. My problem is that if I set the url of HODNAME (allstafflist.jsp) and set target to (new window), it shows the page as a pop up and if I select anything it returns what I want but I don�t WANT IT TO HAVE /SEE STATUS BAR.
    So I thought of writing a javascript and call the function below on click i.e
    ui:hyperlink binding="#{page1now.hodname}" id="hodname"
    style="color: blue; left: 480px; top: 1128px; position: absolute; width: 94px" onClick=�searchpage()� text=" SELECT STAFF" >
    <script >
    function searchpage() {
    window.open( "http://wghjhc-1016:8000/appraisal/faces/allstafflist.jsp" , "sfafflist" , "status = 1, height=900,width=900 , resizable = 0" )
    </script>
    but my problem is that it shows the pop up with no status bar but it display it at the back of the parent page, so if I don�t minimize the parent page I won�t see it.
    So my problem is
    1.     how can I make javascript run first on a page so as to disable the status bar.(i.e if it run first on allstafflist and disable its status bar) or
    2.     how can I make the pop up from the javasript above not to be disappearing(i.e to appear as pop up and not to appear at the back of the current page)or
    3.     how can I set the property or the url to be displayed not to have status bar(i.e if I set the property of hodname i.e url = "/faces/allstafflist.jsp", target="_blank")

    This might help: http://blogs.sun.com/divas/entry/adding_a_popup_window_to

  • How to save status bar background color in local settings(Windows Phone 8.1)

    I have given the user the freedom to change background colour and save it in local settings. But I am confused on how to save the status bar colour settings because I want to give the user the freedom to choose from 4-5 colours where background of status bar
    can be changed.
    public static void SaveStatusBarColor()
    // get status bar color
    var statusBar = StatusBar.GetForCurrentView();
    var color = statusBar.BackgroundColor;
    // convert color to hex string
    var hexCode = color.HasValue ? color.Value.ToString() : "";
    // store color in local settings
    ApplicationData.Current.LocalSettings.Values["StatusBarColor"] = hexCode;
    public static void LoadStatusBarColor()
    // get color hex string from local settings
    var hexCode = ApplicationData.Current.LocalSettings.Values["StatusBarColor"] as string;
    if (string.IsNullOrEmpty(hexCode))
    return;
    // convert hexcode to color
    var color = new Color();
    color.A = byte.Parse(hexCode.Substring(1, 2), NumberStyles.AllowHexSpecifier);
    color.R = byte.Parse(hexCode.Substring(3, 2), NumberStyles.AllowHexSpecifier);
    color.G = byte.Parse(hexCode.Substring(5, 2), NumberStyles.AllowHexSpecifier);
    color.B = byte.Parse(hexCode.Substring(7, 2), NumberStyles.AllowHexSpecifier);
    // set the status bar color
    var statusBar = StatusBar.GetForCurrentView(); // Exception Line
    statusBar.BackgroundColor = color;
    }This is what was suggested to me. Initially the app runs and saves the settings.But when the app is closed and restarted again it crashes.

    Hi shriyansh,
    Where did you call the method SaveStatusBarColor() and LoadStatusBarColor()?
    I have called your SaveStatusBarColor() in the OnNavigatedFrom method and called the LoadStatusBarColor() in the OnNavigatedTo method, it worked very well in my side.
    So I can not reproduce your issue.
    Here are my code and result, please try to check it:
    public class test
    public Color colors { get; set; }
    public sealed partial class MainPage : Page
    List<test> testdemo = new List<test>();
    public MainPage()
    this.InitializeComponent();
    testdemo.Add(new test() { colors = Colors.Red });
    testdemo.Add(new test() { colors = Colors.Green});
    testdemo.Add(new test() { colors = Colors.Gray});
    testdemo.Add(new test() { colors = Colors.Blue });
    this.NavigationCacheMode = NavigationCacheMode.Required;
    public static void SaveStatusBarColor()
    // get status bar color
    var statusBar = StatusBar.GetForCurrentView();
    var color = statusBar.BackgroundColor;
    // convert color to hex string
    var hexCode = color.HasValue ? color.Value.ToString() : "";
    // store color in local settings
    ApplicationData.Current.LocalSettings.Values["StatusBarColor"] = hexCode;
    public static void LoadStatusBarColor()
    //get color hex string from local settings
    var hexCode = ApplicationData.Current.LocalSettings.Values["StatusBarColor"] as string;
    if (string.IsNullOrEmpty(hexCode))
    return;
    // convert hexcode to color
    var color = new Color();
    color.A = byte.Parse(hexCode.Substring(1, 2), NumberStyles.AllowHexSpecifier);
    color.R = byte.Parse(hexCode.Substring(3, 2), NumberStyles.AllowHexSpecifier);
    color.G = byte.Parse(hexCode.Substring(5, 2), NumberStyles.AllowHexSpecifier);
    color.B = byte.Parse(hexCode.Substring(7, 2), NumberStyles.AllowHexSpecifier);
    var statusBar = StatusBar.GetForCurrentView();
    statusBar.BackgroundColor = color;
    statusBar.BackgroundOpacity = 1;
    protected override void OnNavigatedTo(NavigationEventArgs e)
    LoadStatusBarColor();
    protected override void OnNavigatedFrom(NavigationEventArgs e)
    SaveStatusBarColor();
    private void ChangeColorButton_Click(object sender, RoutedEventArgs e)
    var statusBar = StatusBar.GetForCurrentView();
    statusBar.BackgroundColor = testdemo[Convert.ToInt32(Mytextbox.Text)].colors;
    statusBar.BackgroundOpacity = 1;
    The result:
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to disable status bar messages

    hi,
    while loading a form or running the forms applications, forms applet writes log to the status bar of internet explorer.
    i want to disable some of these messages. because i am listening status bar, for a specific message and these messages causes performance problem.
    is there a way to do it?
    regards , Engin.
    here are the messages i logged :
    Finding site: 10.222.4.51
    Connecting to site 10.222.4.51
    Connecting to site 10.222.4.51
    Start downloading from site: http://10.222.4.51:8000/forms/frmservlet?config=tfs
    Opening page http://10.222.4.51:8000/forms/frmservlet?config=tfs...
    Opening page http://10.222.4.51:8000/forms/frmservlet?config=tfs...
    Opening page http://10.222.4.51:8000/forms/frmservlet?config=tfs...
    (2 items remaining) Opening page http://10.222.4.51:8000/forms/frmservlet?config=tfs...
    Opening http://10.222.4.51:8000/forms/java/frmwebutil.jar
    Opening http://10.222.4.51:8000/forms/java/frmall_jinit.jar
    Opening http://10.222.4.51:8000/forms/java/frmall_jinit.jar
    Opening http://10.222.4.51:8000/forms/java/frmwebutil.jar
    Opening http://10.222.4.51:8000/forms/java/frmwebutil.jar
    Opening http://10.222.4.51:8000/forms/java/jacob.jar
    Opening http://10.222.4.51:8000/forms/java/jacob.jar
    Opening http://10.222.4.51:8000/forms/java/tfsbeans.jar
    Opening http://10.222.4.51:8000/forms/java/tfsbeans.jar
    Opening http://10.222.4.51:8000/forms/java/tfsimage.jar
    Opening http://10.222.4.51:8000/forms/java/tfsimage.jar
    Opening http://10.222.4.51:8000/forms/java/jai_imageio.jar
    Opening http://10.222.4.51:8000/forms/java/jai_imageio.jar
    Opening http://10.222.4.51:8000/forms/java/clibwrapper_jiio.jar
    Opening http://10.222.4.51:8000/forms/java/clibwrapper_jiio.jar
    Opening http://10.222.4.51:8000/forms/java/jacob.jar
    Opening http://10.222.4.51:8000/forms/java/jacob.jar
    Applet loaded.
    Applet initialized.
    Applet started.
    Opening http://10.222.4.51:8000/forms/java/tfsbeans.jar
    Opening http://10.222.4.51:8000/forms/java/tfsbeans.jar
    Opening http://10.222.4.51:8000/forms/java/tfsimage.jar
    Opening http://10.222.4.51:8000/forms/java/tfsimage.jar
    Opening http://10.222.4.51:8000/forms/java/jai_imageio.jar
    Opening http://10.222.4.51:8000/forms/java/jai_imageio.jar
    Opening http://10.222.4.51:8000/forms/java/clibwrapper_jiio.jar
    Opening http://10.222.4.51:8000/forms/java/clibwrapper_jiio.jar
    Opening http://10.222.4.51:8000/forms/java/java/awt/KeyboardFocusManager.class
    Opening http://10.222.4.51:8000/forms/java/java/awt/KeyboardFocusManager.class
    Applet loaded.
    Applet initialized.
    Opening http://10.222.4.51:8000/forms/java/java/awt/event/MouseWheelListener.class
    Opening http://10.222.4.51:8000/forms/java/java/awt/event/MouseWheelListener.class
    Opening http://10.222.4.51:8000/forms/java/oracle/forms/registry/Registry.dat
    Opening http://10.222.4.51:8000/forms/java/oracle/forms/registry/Registry.dat
    Opening http://10.222.4.51:8000/forms/java/oracle/forms/registry/default.dat
    Opening http://10.222.4.51:8000/forms/java/oracle/forms/registry/default.dat
    Opening http://10.222.4.51:8000/forms/frmservlet?config=tfs&acceptLanguage=en-us,tr;q=0.5&ifcmd=startsession
    Opening http://10.222.4.51:8000/forms/frmservlet?config=tfs&acceptLanguage=en-us,tr;q=0.5&ifcmd=startsession
    Opening http://10.222.4.51:8000/forms/lservlet;jsessionid=0ade042330d69eb05aec84b344128245ca217665e6c7.e3eNc3iPc3j0ax4LbNeKaxqKci1ynknvrkLOlQzNp65In0?ifcmd=getinfo&ifhost=EDP12PC58&ifip=10.222.12.58
    Opening http://10.222.4.51:8000/forms/lservlet;jsessionid=0ade042330d69eb05aec84b344128245ca217665e6c7.e3eNc3iPc3j0ax4LbNeKaxqKci1ynknvrkLOlQzNp65In0?ifcmd=getinfo&ifhost=EDP12PC58&ifip=10.222.12.58
    Opening http://10.222.4.51:8000/forms/lservlet;jsessionid=0ade042330d69eb05aec84b344128245ca217665e6c7.e3eNc3iPc3j0ax4LbNeKaxqKci1ynknvrkLOlQzNp65In0
    Opening http://10.222.4.51:8000/forms/lservlet;jsessionid=0ade042330d69eb05aec84b344128245ca217665e6c7.e3eNc3iPc3j0ax4LbNeKaxqKci1ynknvrkLOlQzNp65In0
    Opening

    First off that's what's called a kernel panic and it's the most extreme software problem as the kernel itself is malfunctioning which everything else depends upon.
    It's rather easy to resolve, there are usually two causes for it, outdated software or a problem with OS X itself like it lost part of itself somehow on the drive.
    So instead of disabling it which you can't as the operating system is basically frozen (not all of it of course) you should just fix it up really quick and all is well.
    Depending upon what operating system the machine has gives you different options to #8 Resinstall Just OS X over itself to fix issues in OS X, and with third party "hooks" called kernel extension files (kexts) that some software place into OS X itself.
    So you do that here and it won't delete programs or files, but any program with a kext file in OS X is removed by the overwrite process.
    So do #8 here and other Steps as you see fit to fix the machine.
    ..Step by Step to fix your Mac
    Of course doing so is going to make some software not work, so you have to check to make sure before you reinstall certain software that it's been updated and works fine with the current OS X verison.

  • How to eliminate Status Bar for JDialog

    Hi,
    I have a Jdialog Box with Status Bar ( Default) which says "Java Applet Window". I want to eliminate that in my App. How can I do that?
    Thanks

    I had the same problem after accessing a remote object via RMI in my GUI. As I needed a SecurityManager anyway, I just added permission java.awt.AWTPermission "showWindowWithoutWarningBanner"; to my policy-file - and the nasty status bar was gone.

  • How to remove status bar at bottom of browser when in full screen mode

    We have an application that runs in full screen mode for public display, so having the status bar pop-up at the bottom of the screen is distracting when it moves between pages is distracting and detracts from the user experience.
    How do I disable the status bar so that it no longer pops up when the browser is in full screen mode?

    Or do you mean the floating message that describes the current activity of the browser (for example, Waiting...) or shows the URL of the currently hovered link?
    That can be suppressed using custom style rules. Here is an example of a past thread on how you might do that:
    [https://support.mozilla.org/questions/976248 How do I disable the link address popup at bottom of the page?]
    That was as of Firefox 25. Does it still work in Firefox 30?

  • How to put Status bar

    How to put a status bar in a JFrame by which some informations that will be done in the application should be displayed in the status bar.

    Add a JPanel to your JFrame and tell the program this is your contentPane
    Next you set the contentPane's Layout a BorderLayout.
    Last you've to add a JLabel to the contentPane.
    Now you can set a statusText or an Icon...
    hope it helps,
    Thof

  • How to disable status bar from creating a dead zone in the simulator

    Is this a known bug in the simulator,where a hidden status bar is still grabbing touches? I constantly get frustrated by the inability to click at the top 20 or so pixels of the screen because that is a dead zone, and even though I have a hidden status bar the status bar is still grabbing touches there. Any way around this? And will this happen in the iPhone version, or is it just the simulator?

    You have a point, if your users are filling the form in with Reader, they won't be able to save the data with the form unless the form has been "Reader Extended" (which enables this functionality in Reader for the particular form)
    If you have Acrobat Pro, you can "extend" the form before you send it to the users.  The following is from the Acrobat Pro help...
    Enable Reader users to save form data
    Ordinarily, Reader users can’t save filled-in copies of forms that they complete. However, you can extend rights to Reader users so they have the ability to do so. These extended rights also include the ability to add comments, use the Typewriter tool, and digitally sign the PDF.
       1. Open a single PDF, or select one or more PDFs in a PDF Portfolio.
       2. Choose Advanced > Extend Features In Adobe Reader.
    These extended privileges are limited to the current PDF. When you create a different PDF form, you must perform this task again if you want to enable Reader users to save their own filled-in copies of that PDF.
    Regards
    Steve

  • How to hide status bar and get fullscreen?

    Hello,
    I have compiled to .ipa and loaded my app onto my iphone.  I have set the app to be fullscreen in the descriptor file, but it does not display fullscreen on my phone.  Initially the UIStatusBar gets hidden like it should, but after the Default.png goes away and the app loads, the status bar comes back.  I have tried setting the UIStatusBarHidden property in the InfoAdditions section, but when I do the PFI throws an error and does not compile my .swf to .ipa.
    Any ideas?  I have compile another app and successfully set it to fullscreen mode by making sure the fullscreen property is set to true.  For some reason it does not work on the current app I am working on.

    Hello,
    I have compiled to .ipa and loaded my app onto my iphone.  I have set the app to be fullscreen in the descriptor file, but it does not display fullscreen on my phone.  Initially the UIStatusBar gets hidden like it should, but after the Default.png goes away and the app loads, the status bar comes back.  I have tried setting the UIStatusBarHidden property in the InfoAdditions section, but when I do the PFI throws an error and does not compile my .swf to .ipa.
    Any ideas?  I have compile another app and successfully set it to fullscreen mode by making sure the fullscreen property is set to true.  For some reason it does not work on the current app I am working on.

  • Can't find how to activate "Status Bar" on Firefox 4 Beta 7

    Status Bar option is not on View menu. Where is is?

    The Status Bar is no longer present in Firefox 4.0 b7 and replaced by the Add-ons Bar that extensions can use.
    Status-4-Evar: https://addons.mozilla.org/firefox/addon/235283/
    Open the View > Toolbars > Customize window after you have installed the Status-4-Evar extension and drag the items up on the Add-ons Bar (View > Toolbars > Add-on Bar)

  • How to update status number of KO02 transaction

    Hi Guys,
    I need to update status record of internal order (KO02 tcode).
    I have used two function modules
    ALE_INTERNALORDER_DB_CHANGE
    BAPI_INTERNALORDER_SAVEREPLICA
    Can u pls tell me which parameters need to be pass into these FMs.
    ASAP
    Thanks in advance,
    Sakti

    Anyone please response to this question.
    Thanks,
    sakti

  • How to eliminate status bar icon?

    I used an app named LogMeIn for a short while, then deleted it from my Mac using AppCleaner.  The icon for LogMeIn, however, still appears as a grayed-out icon in the menu bar.  I tried to remove it using Command-Click to drag it off the menu bar, but it won't move.  I also confirmed that LogMeIn was removed from my login items.  How do I remove the icon in the menu bar?  Thx

    You can try deleting the associated plist  com.apple.systemuiserver found in your user library here:
    Finder>Go>Go to Folder:
    ~/Library/Preferences/com.apple.systemuiserver.plist
    then in the terminal.app copy and paste:
    killall SystemUIServer
    to rebuild the default plist
    or if you are not comfortable with terminal,  reboot the machine after you delete the plist.

  • Firefox 3.6.12 unable to update, status bar appears as usual then says unable to due to suspected firefox app being open, only solution for me using firefox is exiting pwdbank from task manager

    i have firefox 3.6.12
    when cold start opening firefox browser
    message appears with that update is required before proceeding
    click yes
    an update bar appears and reaches a 100%
    then a message says it is unable to update due to another firefox being open (this shouldn't occur since firefox is closed during update)
    and that i should reupdate when this is closed
    keep on pressing retry to no avail
    then decided to go to task manager and exit pwdbank
    this is my current solution for using firefox
    only problem is that when i reopen firefox from a cold start is that
    it would ask me to re-update
    problem is not fixed
    need help
    would i need to uninstall reinstall to get it to work again

    I am using IE to post this message on Firefox.
    It has happened again. At 23:05 (UK time) I openedFirefox on the firefox site not IE. I opened my btinternet.com email account but at 23:41 the tab had not opened fully and still trying to load. I closed firefox and tried to open it again and here are the correct details of the dialogue box which appeared.
    ' (?) Firefox is already running. To open a new window, you must first close the existing Firefox proces, or restart your system'.
    I cannon do a restart at present as the tv part of my pc is recording a movie so I will try again later.
    Anyone out there that can help us please? Thank you.

Maybe you are looking for