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

Similar Messages

  • How to put scrol bar in table viw control in module pool programming

    how to put scrool bar in table-view control in module pool programming

    Hi Rani,
       You need not insert Scrollbar in the table control, it appears automcatically once the amount of data vertical or horizontal limit of table control.
    Regards,
    Sathish
    Note : Reward useful Answers

  • 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 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 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 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 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.

  • 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);
    }

  • Status bar hidden on Mac

    My app has a regular window with status bar on. The app remembers the window size and position so when the user launches the app next time, the window will appear where it was. However, if the window was maximized last time, the newly launched window will be maximized but the status bar is  hidden.
    This happens under mac os x. The app can be found http://www.peaya.com/paper/download.html

    I just want to leave this picture here, showing how annoying the status bar is since the last update.
    i made this picture on my ipad mini playing the iphone game Zenonia the status bar hides half of the map (upper left corner) and the backpack button (upper right corner) making it impossible to play the game because that button is really important.
    i hope that this gets fixed someday.

  • Status bar colour

    hi all
    having read the odd thread on the matter, it appears that the status bar will always be visible, unless the app developer uses an "immersive mode" (http://talk.sonymobile.com/t5/Xperia-Z3-Compact/Status-notification-bar-is-always-on-screen/m-p/9831...)
    I do find what appears to be a intrusive blue background though for the status bar in most apps, when the status bar isn't hidden.
    However, I've noted an occasional status bar, which hasn't this hideous blue background and even the odd one which seems to have a transparent background (or just the colour of the app).
    I'm assuming the blue default background is defined by the OS/OS theme?
    If so, cannot the OS detect the colour of the app and match it, so it's less painful on the eyes?
    Regards,
    Gary

    http://www.google.com/design/spec/components/tabs.html#tabs-specs
    http://stackoverflow.com/questions/27093287/how-to-change-status-bar-color-to-match-app-in-lollipop-...
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Status bar covers top of iPhone apps on iPad2/ mini

    Since iOS 7 came out I have had several iPhone apps that have the status bar visible and is on top of the app, hiding the top portion of the screen (in games, usually where scores are or number of lives left). Prior to iOS 7 the satus bar was hidden if I had the game in 2x mode, but with iOS 7 I can't even go back to 1x mode. Is their a fix for this or is it a bug that will hopefully get fixed in an update? I kept hoping each update would fix it but no such luck yet. Or is it an app issue?
    Most of them are older apps and does this both on my iPad 2 and iPad Mini.

    I just want to leave this picture here, showing how annoying the status bar is since the last update.
    i made this picture on my ipad mini playing the iphone game Zenonia the status bar hides half of the map (upper left corner) and the backpack button (upper right corner) making it impossible to play the game because that button is really important.
    i hope that this gets fixed someday.

Maybe you are looking for