Add a status bar

Hallo.
I have a program that uses a JFrame and JInternalFrames to bring out a GUI. I would like to add a strip to the bottom of the main Jrame to work as a status bar but am quite challenged. Anyone with an idea?

There are quite a number of classes involved (13 to be exact) and it communicates with a MySQL database so posting the code will be a bit tedious. But just to give a general idea, this class that extends a JFrame acts as the main window from which all other classes are called from, using JMenus. Now I would like to add a status bar of some sort to the bottom of this JFrame-extending class.

Similar Messages

  • How can i add the status bar to the bottom of iTunes 11.4?

    In the past, on Itunes 11.0, when I opened the program, there would be  a bar on top that would read, "File, Edit, View, Controls, Store,Help"  and below , a status bar that would tell me the number of tracks in  a playlist and duration, "7 Songs, 28:20 Total Time, 51 MB"
    Those controls/status bars are gone in the new 11.4 edition of iTunes.
    Any idea how to bring them back?
    many thanks!
    -- Katharine

    Use the View menu to show the status bar.
    Turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.

  • How can I use the same thread to display time in both JPanel & status bar

    Hi everyone!
    I'd like to ask for some assistance regarding the use of threads. I currently have an application that displays the current time, date & day on three separate JLabels on a JPanel by means of a thread class that I created and it's working fine.
    I wonder how would I be able to use the same thread in displaying the current time, date & day in the status bar of my JFrame. I'd like to be able to display the date & time in the JPanel and JFrame synchronously. I am developing my application in Netbeans 4.1 so I was able to add a status bar in just a few clicks and codes.
    I hope somebody would be able to help me on this one. A simple sample code would be greatly appreciated.
    Thanks in advance!

    As you're using Swing, using threads directly just for this kind of purpose would be silly. You might as well use javax.swing.Timer, which has done a lot of the work for you already.
    You would do it something like this...
        ActionListener timerUpdater = new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                // DateFormat would be better, but this is an example.
                String timeString = new Date().toString();
                statusBar.setText(timeString);
                someOtherLabel.setText(timeString);
        new Timer(1000, timerUpdater).start();That code will update the time once a second. If you aren't going to display seconds, you might as well increase the delay.
    The advantage of using a timer over using an explicit thread, is that multiple Swing timers will share a single thread. This way you don't blow out your thread count. :-)

  • How to Insert a Status Bar to my application

    Hello all
    I use JBuilder v9 and would like to add a status bar at the bottom of the main
    frame in my program. I checked the manual pages but there is no such class as StatusBar or JStatusBar.
    When I type StatusBar (or JStatusBar) sb = new StatusBar (or JStatusBar) ();
    it gives errror message.
    Does anyone know how to add a status bar to a frame?

    A quick a dirty example:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    public class StatusBarDemo extends JFrame
      private JLabel statusBar;
      public StatusBarDemo()
        JMenu menu = new JMenu("File");
        JMenuItem item = new JMenuItem("Open");
        item.addMouseListener(new StatusBarUpdator("Open a new file"));
        menu.add(item);
        item = new JMenuItem("Print");
        item.addMouseListener(new StatusBarUpdator("Print the current file"));
        menu.add(item);
        item = new JMenuItem("Save");
        item.addMouseListener(new StatusBarUpdator("Save the current file"));
        menu.add(item);
        JMenuBar menuBar = new JMenuBar();
        menuBar.add(menu);
        setJMenuBar(menuBar);
        statusBar = new JLabel(" ");
        statusBar.setForeground(Color.black);
        statusBar.setBorder(new CompoundBorder(new EmptyBorder(2, 5, 2, 5),
                                               new SoftBevelBorder(SoftBevelBorder.LOWERED)));
        Container c = this.getContentPane();
        c.setLayout(new BorderLayout());
        c.add(statusBar, BorderLayout.SOUTH);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
      public static void main(String[] args)
        StatusBarDemo frame = new StatusBarDemo();
        frame.setSize(400,300);
        frame.setVisible(true);
      class StatusBarUpdator implements MouseListener
        private String hoverText;
        public StatusBarUpdator(String text)
          hoverText = text;
        public void mouseEntered(MouseEvent e)
          statusBar.setText(hoverText);
        public void mouseExited(MouseEvent e)
          statusBar.setText(" ");
        public void mouseClicked(MouseEvent e){}
        public void mousePressed(MouseEvent e){}
        public void mouseReleased(MouseEvent e){}
    }

  • Status bar while Xcelsius is processing

    The Xcelsius file I have created takes a few seconds to process when the user makes a selection.  I would like to add a status bar similar to the one in the link below in between selections.  I have been unsuccessful in finding this in the help topic.  I am currently using Xcelsuis Professional 4.5 - is this component available in this version?
    http://resources.businessobjects.com/support/cx/samples/download_45/banking_dashboard/Banking%20Dashboard.swf

    1.) In one instance of Xcelsius 4.5, produce your model.
    2.) Export the model to SWF (File --> Export --> Macromedia Flash).  Remember the location where the swf file is saved.
    3.) Open another instance of Xcelsius 4.5
    4.) Drag an External SlideShow component to the canvas.  This can be found in Web Connectivity component folder.
    5.) Open the SlideShow's property sheet.  Enter the location of the previously exported SWF
    6.) Preview the model.  Depending on how big the model actually will increase the amount of time the progress bar is visible.
    Bind - If you have a property value set in the Excel sheet, you can set the component property to read from the Excel cell.
    Host - The SWF file resides on a file server.  This is also known as a "hosted file".
    Hope that helps.

  • Wasted space under Firefox 4 addon status bar

    I upgraded to Firefox 4.0.1. I enabled the add-on status bar, as it was under FF3.
    There is now about 1" of extra unused space under the status bar (the bar is too high at the bottom of the page).
    I ran FF4 with all addons disabled, enabled the add-on bar, and the bar appeared ok with no problem.
    I have probably two dozen addons installed. I disabled several selectively, but the problem remained.
    Any suggestions as to how to diagnose this problem?
    Thanks,
    Fred

    Hi:
    Yes, I have Status4evar installed. However, I found that I can enable the status (addon) bar via View -> Tool bars -> Add-in toolbar.
    Below is a list of my addons. Could you please compare this list with your addon list? If you can provide a list of addons that we both have installed, then I can try to selectively disable those addons.
    Thanks very much,
    Fred
    Leading characters on each line are my notes on compatability. Numeric fields indicate the version of Firefox they claim to be compatible with.
    Leading characters on each line are my notes on compatibility. Numeric fields indicate the version of Firefox they claim to be compatible with.
    Aardvark{3.0}
    6 AdblockPlus{1.3.6}
    Add-onCompatibilityReporter{0.8.3}
    AdobeDLMpoweredbygetPlusR{1.6.2.63}
    AdvertisingCookieOpt-out{1.3}
    AutomaticSaveFolder{1.0.2}
    BackendSoftwareInformation{1.2.8.0}
    BacktoTop{6.0}
    5 BeefTacoTargetedAdvertisingCookieOpt-Out{1.3...
    5 BetterPrivacy{1.50}
    4 BrowserView
    BugMeNot{2.2}
    Closenforget{0.11.1}
    ColorZilla{2.5.5}
    ConfigurationMania{1.14.2011050202}
    Console{0.7}
    CookieCuller{1.4}
    5 CookieMonster{1.0.5}
    3.0 CSSViewer{1.0.3}
    DownloadHelper{4.8.6}
    Downloadstatus{1.7.3}
    DrupalForFirebug{0.0.7}
    ErrorZillaPlus{0.8.1}
    4 ExtendedStatusbar{1.5.7}
    FastYoutubeDownloader{1.2.2}
    xxxxxxxxxxx 3.7 FEBE{6.3.3.2}
    FindAll{3.1}
    5 Firebug{1.6.2}
    Firecookie{1.2.1}
    4 FirefoxSync{1.7}
    FireGestures{1.6.4}
    Firesizer{.2}
    4 FlagFox
    FontFinder{1.0}
    4 FoxySEOTool{0.8.5}
    GoogleAnalyticsOpt-outBrowserAdd-on{0.9.2}
    GrabandDrag{2.8.0}
    Greasemonkey{0.9.2}
    GridFox{2.0}
    HeadingsMap{1.05.7}
    4 HttpFox{0.8.9}
    HTTPS-Everywhere{0.9.6}
    4 Hyperwords{8.1}
    IEView{1.4.5.1}
    JavaScriptDebugger{0.9.88.1}
    JavaScriptDeobfuscator{1.5.6}
    5 KGen{0.8.1}
    LinkStatus{1.6}
    5 LiveHTTPHeaders{0.16}
    LogitechDeviceDetection{1.21.0.11}
    MeasureIt{0.4.8}
    Microsoft.NETFrameworkAssistant{1.2.1}
    4 MorningCoffee{1.33}
    6 NoScript{2.1.0.3}
    OptimizeGoogle{0.78.2}
    3.6 possibly 4 OrganizeStatusBar{0.6.4}
    PageDiff{1.5}
    PageSpeed{1.10.2}
    PasteEmailPlus{3.2}
    5 prefsearch{0.1}
    privacychoicetrackerwatcher{1.0.9}
    4 readitlater{2.1.1}
    5 refcontrol{0.8.14}
    6 requestpolicy{0.5.21}
    restartlessrestart{4.2}
    savecomplete{1.0.1}
    4 searchbarautosizer{1.4.7}
    searchsite{2.0}
    searchstatus{1.36}
    selectivecookiedelete{3.5}
    4 senseo{1.5.5}
    seoblogger{1.0.4}
    seoforfirefox{3.4.6}
    seolinkanalysis{1.0.6}
    seoquake{2.7.1}
    showip{0.8.19}
    x 3.6 siphon-syncadd-ons{0.9.0}
    smartclick <experimental>
    6 sqlitemanager{0.7.1}
    5 stumbleupon{3.81}
    6 tabmixplus{0.3.8.5}
    xxxxxxxxxxxx 3.7 tabprogressbar{0.6}
    5 togglewebdevelopertoolbar{0.6}
    totalvalidator{6.11.0}
    5 urim{0.1}
    5 viewsourcechart{3.02}
    5 wappalyzer{1.13.2}
    5 webdeveloper{1.1.9}
    5 x-ray{0.9.1}
    4 YetAnotherSmoothScrolling{3.0.17}
    Status-4-Ever

  • Can't create a status bar for my window

    I'm trying to add a status bar to a window I've created. I've tried to get this to work by doing this:
    frame = new JFrame();
    canvas = new CanvasPane();
    frame.setContentPane(canvas);
    frame.setTitle(title);
    canvas.setPreferredSize(new Dimension(width, height));
    backgroundColour = bgColour;
    Container contentPane = frame.getContentPane();
    JLabel statusLabel = new JLabel("This is the status bar");
    contentPane.add(statusLabel, BorderLayout.SOUTH);
    Everything works except for the status bar. What am I doing wrong?

    in the above example, the poster is taking it for granted that you class extends the JFrame class. In case not then you have do as follows:
    myFrameName.getContentPane()."What ever else";Also before starting to put thing using the border layout do as follows:

  • Cannot find status bar

    i am new to java, so i do think this is a stupid question to most of you, i'm a 2nd year high school student, and i'm doing my assignment. what i like is to add a status bar on my app. how can i add status bar on a frame or mdi form. please help, i have to pass this project tommorrow. thanks for advance.

    but have you read his post on me!
    just write this stuff you lazy api-reader ;)i'm just amaze that why java don't have status bar api. i know how to code what he code on that forum. i've seen it.i know i have to read more, but again we mistakenly identify me as a guy. have he read my name joyceAnnNewToForum, i'm a girl! i don't want a fight, i just want a simple suggestion or answers. i try my best to program java even though this is very hard to grasp on my age. may be i should drop this subject and start playing again. i hate him!

  • How can I disable an add on of a second status bar or browsing bar at bottom of screen above the Start button? It pops up showing every site I visit.

    There is status/info/browsing line of information showing every single site I use and changes with every site I visit. It isn't in a box, but it shows basically all my browsing. It is like the address bar, but it is at the bottom of the screen and the information shows right above the 'start' button. If you try to click on it, it moves to the right side and you can't right click on it to see if you can close it. It may be an add on, but I don't know how to get rid of it. It is like I have two status bars but this one isn't in a box, it just shows in a line at the bottom of the screen. It shows all browsing information, and it is very distracting when I'm using my computer.

    You appear to be describing the status messages. The easiest way to hide them is to use the Status-4-Evar add-on. With it you can choose to not display any of the status messages, or display them in the add-ons bar or location bar instead.
    https://addons.mozilla.org/firefox/addon/status-4-evar

  • How can I make the status messages appear IN the status bar / add-on bar instead of floating ABOVE the status bar? (like it used to)

    now that I have the status bar back, why won't it show the status messages IN the status bar?

    The Status-4-Evar add-on can do this, it makes the add-ons bar behave in a similar way to the status bar in Firefox 3.6 and earlier.
    https://addons.mozilla.org/firefox/addon/status-4-evar/

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

  • I am trying to add tracks which I have on my library on my computer to my ipad. I have done this manually but teh status bar never gets beyond "preparing to update". I have used itunes for years but never had this problem before

    I am trying to add tracks which I have on my itunes library on my pc to my ipad. I have done this manually but the status bar never gets beyond "preparing to update". I have used itunes for years but never had this problem before

    When I restart my iPad the connect to iTunes comes up and stays on until it shuts down again, I have read a report from Apple support suggesting I reinstall iTunes so I might try that again and also your suggestion which i shall also try, but thanks again - rg1547

  • Can I add date to time in status bar

    Can I add the date to the time in the iPad status bar?

    Not possible for now.
    Contact to apple for your feedback: http://www.apple.com/feedback/ipad.html
    Cheers,Dennis

  • Navigation toolbar under tabs - after installing status bar add on

    I can see the navigation bar as well as a shadow of the tabs, but cannot access the navigation icons. this began after loading the status bar add on to use older add ons

    See http://kb.mozillazine.org/Corrupt_localstore.rdf

  • My Status Bar Add-On Disappeared; What Gives?

    Hello,
    I downloaded FireFox v. 4.0.1 months ago, and was able to download the Status-4-Ever Add-on that allows you to keep the old style of the FireFox status bar at the bottom of the page in its own toolbar. I like this as it not only showed clearly the status of a page you were trying to access, but you could scroll over something on the screen, and it'd give you the location of the page you were trying to access.
    Anyway, I get on my computer, today (June 3), and just over night the status bar has disappeared. I've tried messing around with Status-4-Ever but can't get back the status bar on the bottom of the page. What gives?

    Hi Firefoxxed,
    Try Ctrl+/ to bring it back that is the keyboard shortcut for View -> Toolbars -> Add-ons Bar, it will toggle that option on or off, and was the only good thing to come out of this.
    * [http://dmcritchie.mvps.org/firefox/status4evar.htm Status-4-Evar Addon Bar Customization]
    * [https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/ Status-4-Evar :: Add-ons for Firefox]
    * [http://dmcritchie.mvps.org/firefox/keyboard.htm Firefox and other Browser Keyboard Shortcuts (Comparison Table)]
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

Maybe you are looking for

  • Itunes no longer loads

    Vista Business 100gb hard drive t7600 @2.33ghz 2gb ram I get the error: The iTunes application could not be opened. The file or directory is corrupted and unreadable. I have partitioned my drive into 2 hard drives, I have run check disk on both and i

  • Why did updating to iOS 8.3 crash my iPhone 5s?

    After I downloaded the huge iOS 8.3 update, the last thing I expected was for my phone to stop working. The screen displayed an iTunes logo and the power cord, so I hooked it up to my computer to do a restore (just praying that maybe my hundreds of b

  • How can I recover deleted iPhoto photos

    Hello, Just a few weeks ago, I noticed my hard drive was nearly to capacity on my imac, so thanks to the boards here, I moved my entire iPhoto library to an external hard drive.  The move was successful, however, recently I was organizing photos in i

  • Content Conversion - character (')

    My input file include (') - apostrophe character, and it's converted into --> & a p o s ; (without space) How do I get rid of it? Edited by: Rokie Namura on Dec 20, 2007 5:52 PM

  • I have downloaded ITUNES 10.7 on my Windows 7 laptop. When I try to start the program, 2 overlapping icons (ITUNES

    After Itunes 10.7 update, the program can't be started anymore on my Windows7 laptop. 2 overlapping icon (Itunes + Apps) appear on the start menu bar, but nothing happens. The screen is frozen and the program can't be opened. Any ideas how to solve t