Displaying a status bar through swings

Hi everybody,
My problem is that i want to display a status bar, using Java Swings. In this regard i am facing somwe difficulty, and i would be really thankful to those, who in some way can help me.
thanks

Create a Static JLabel in the main application constructor and add it to the South position of your main window.
Now set the text dynamically whereever u want to show a status message to this static label.
I hope this can solve your problem

Similar Messages

  • Error Message Displaying the status Bar not like popup message

    Hi all,
    My Requirement is while creating  invoice if pricing conditons is repeted , system should thorough the error message like (uplicate Condition Types Are Not Possible  in the status Bar but Im getting poup Error message So I want to display the same message in the status Bar.
    Please Help me any one.
    Regards,
    Prathap

    I dont want to Display the popup, I want to Display in Status Bar as a Error Message.
    Like this .
    If I put  message type 'E' its Displaying popup message , MESSAGE ' Duplicate Condition Types Are Not Possible.' TYPE 'E'.
    If I Put messge type 'I' its Displaying in Status Bar .
    Regards,
    Prathap
    Edited by: giri prathap on Sep 13, 2011 12:35 PM

  • Status Bar displays "Access is denied"

    Hi,
    We have EP 7 SP 11 portal where we are displaying Web Dynpro Java Iviews.
    Whenever a user logs in into the portal, the status bar displays a message" Access is denied" . Though this does not affect the funcitonality of the system but customers are complaining about the same.
    It would be really appreciated if anyone can help us on the following :
    1) What is the reason for this message appearing on the status bar ?
    2) Can this message be completely removed from the status bar ?
    3) If the text can be changed for this message displayed on status bar ?
    Thanks & Regards,
    Bir

    Check for the error message appearing in Netweaver Administrator Logs
    http://host:port/NWA
    goto monitoring and selects logs
    Check in Default Logs after you encounter error
    Definitely the user is missing some permissions . Also check in the ABAp Dumps at ABAP end for missing authorizations on ABAP side.

  • Status Bar using JFrame

    Hi All,
    I have a window which displays a map. This is done using JFrame. Now, I need to display the status bar at the bottom of the window using JFrame. How do i do it?
    Please let me know asap.
    Regards
    Abhi

    Read the Swing tutorial on "Using Layout Managers".
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html
    You add your "map" panel to the center and your "status" panel to the south.
    In the future, Swing related questions should be posted in the Swing forum.

  • How do i keep the foxclocks status bar at the bottom of the page ?

    I have just recently changed over to the latest version of firefox 4.01 .... I use the foxclocks add onn to which on this latest version of Firefox i have to keep on going into the settings - Tools - Options - Display In - to display the status bar as it keeps on disappearing everytime i log off and log back on ! Is there a way of keeping the status bar permanently on the bottom just like it used to be on the old version of Firefox ?

    You can use this extension to hide the pop-up that shows the URL of a link on hover and other data that previously appeared on the Status bar.
    *Status-4-Evar: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/

  • How to create a status bar in Forms 6i

    Hi,
    I am using Forms6i. I am calling a C application which takes some time to execute...So I would like to display a status bar in forms saying....Processing..Please Wait...
    And, once the control comes back to forms from the C program, this status should say complete.....
    Is there a way to do this ?..
    Please give some example /link for this
    thanks

    Hi
    Y cant u have a text item, ENABLED before the that C code with DEFAULT value 'Pleae wait....' and even u could have cursor style also set to BUSY.. then after process DISABLE the text item and bring back cursor style to DEFAULT.
    Regards

  • Dispalying a Status Bar from Servlet

    Hi team i am in a situation i am using a servlet which will do all talking to my database create Array objects, Linklist objects and finally Dispatchs to an JSP page. From say abc.jsp i am sending a request to a servlet passing a set of keys to create a report and servlet is taking like 5 min to create report on each key, so if user selects 10 keys and submit it is taking 10*5 minutes, we gota request from users that they need a Statusbar like thing which says like Processing 1 to 10 /n processing 2 of 10. like wise
    I tried giveing
    ProText = "Processing: " + Procnt + " Of " + ProTotalcnt + " Currently Creating for RRD: " + name + "\n";
    PrintWriter resOut = res.getWriter();
    res.setContentType("text/html");
    resOut.println("<html>\n<h1>StatusBar</h1>\n
    " + ProText + "\n</html>");
    resOut.close();
    it was giving an error
    java.lang.IllegalStateException: Cannot forward. Response already committed. (Servlet 2.3, SRV 8.4)
    Can any one give a how can i display a Status bar from the middle of the servelet processing

    if you are using jsp thasn you must use out.println(somethig) insted of response.getWriter() because of compiled jsp servlet can allready write some information before you get new writer so
    your code must looks like :
    <%@page contentType=""text/html"%>
    <%
    ProText = "Processing: " + Procnt + " Of " + ProTotalcnt + " Currently Creating for RRD: " + name + "\n";
    out.println("<html>\n<h1>StatusBar</h1>\n
    " + ProText + "\n</html>");
    %>

  • What is the name in the status bar when we activate a webdynpro??

    hi all,
    When we activate the webdynpro,in the status bar its displayin some name like 1BCWDY/*********==CP.
    I got it is the include program.
    The name getting displayed in status bar and the name in the table WDY_WB_SOURCEMAP differs.
    If i give the component name in the table WDY_WB_SOURCEMAP it displayin all the includes but not the one displayed in status bar.
    Kindly tell me why it differs.

    Hi,
    Check the tables WDY_WB* you can find the relevant ones in these tables.
    These includes can be for the views/components....
    Are you activating the view/component.
    Regards,
    Lekha.

  • The status bar not going while download the app.

    The status bar not going while download the app.
    I'm bought the bento from App Store, I finished the payment, but the status bar appeared but doesn't show any progress. Strange!!

    I dont want to Display the popup, I want to Display in Status Bar as a Error Message.
    Like this .
    If I put  message type 'E' its Displaying popup message , MESSAGE ' Duplicate Condition Types Are Not Possible.' TYPE 'E'.
    If I Put messge type 'I' its Displaying in Status Bar .
    Regards,
    Prathap
    Edited by: giri prathap on Sep 13, 2011 12:35 PM

  • Displaying Status Bar

    Hi,
    I am having an application which consists of JFrames on which JInternal Frames are added through JDeskTopPanes. I am facing two problems :
    1. When I iconify the JInternalFrames, I am unable to see the incons in the bottom of the JFrame.
    2. How can I construct a status bar to JFrame with provision to display messages?
    Thanks in anticipation of reply
    Srini

    Here is some example code that shows internal frames inside a JFrame. There is a status bar at the bottom of the JFrame. If you run this code, you will see the status bar being updated whenever you move or resize one of the JInternalFrames. Hope this helps...
    cheers,
    dave
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    public class IntFrameTest extends JFrame
         private StatusBar sbar = new StatusBar();
         private JDesktopPane desktop = new JDesktopPane();
         public IntFrameTest()
              desktop.setPreferredSize(new Dimension(500, 400));
              desktop.setDesktopManager(new MyDtopManager());
              // Create Internal frames
              for (int i = 0, j = 0; i < 50; i += 10, j++)
                   JInternalFrame iframe = new JInternalFrame("Int Frame# " + j,
                        true, true, true, true);
                   iframe.setBounds(i, i, 250, 100);
                   iframe.setVisible(true); //necessary as of 1.3
                   desktop.add(iframe);
                   try
                        iframe.setSelected(true);
                   } catch (java.beans.PropertyVetoException e) { }
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(desktop, BorderLayout.CENTER);
              getContentPane().add(sbar, BorderLayout.SOUTH);
              pack();
         public static void main(String[] args)
              IntFrameTest jt = new IntFrameTest();
              jt.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
              jt.addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent event)
                        System.exit(0);
              jt.setVisible(true);
         class MyDtopManager extends DefaultDesktopManager
              public void dragFrame(JComponent frame, int newX, int newY)
                   super.dragFrame(frame, newX, newY);
                   sbar.setStatus1(((JInternalFrame)frame).getTitle() + " - Moving");
                   sbar.setStatus2(String.valueOf(newX)+","+String.valueOf(newY));
              public void resizeFrame(JComponent frame, int newX, int newY, int newWidth, int newHeight)
                   super.resizeFrame(frame, newX, newY, newWidth, newHeight);
                   sbar.setStatus1(((JInternalFrame)frame).getTitle() + " - Resizing");
                   sbar.setStatus2(String.valueOf(newX)+","+String.valueOf(newY)+","+
                        String.valueOf(newWidth)+","+String.valueOf(newHeight));
              public void endDraggingFrame(JComponent frame)
                   super.endDraggingFrame(frame);
                   sbar.setStatus1(null);
                   sbar.setStatus2(null);
              public void endResizingFrame(JComponent frame)
                   super.endResizingFrame(frame);
                   sbar.setStatus1(null);
                   sbar.setStatus2(null);
    class StatusBar extends JPanel
         private final JLabel status1;
         private final JLabel status2;
         public StatusBar()
              status1 = new JLabel(" "); // Need the space to get correct size!
              status2 = new JLabel(" ");
              status1.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
              status1.setHorizontalAlignment(JLabel.LEFT);
              status2.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
              Dimension size = new Dimension(125, status2.getPreferredSize().height);
              status2.setMinimumSize(size);
              status2.setMaximumSize(size);
              status2.setPreferredSize(size);
              status2.setHorizontalAlignment(JLabel.LEFT);
              GridBagLayout gbl = new GridBagLayout();
              GridBagConstraints gbc = new GridBagConstraints();
              setLayout(gbl);
              gbc.insets    = new Insets(2, 0, 0, 4);
              gbc.fill      = GridBagConstraints.HORIZONTAL;
              gbc.anchor    = GridBagConstraints.WEST;
              gbc.gridwidth = 1;
              gbc.weightx   = 1.0;
              gbl.setConstraints(status1, gbc);
              add(status1);
              gbc.insets    = new Insets(2, 0, 0, 0);
              gbc.fill      = GridBagConstraints.NONE;
              gbc.anchor    = GridBagConstraints.WEST;
              gbc.gridwidth = GridBagConstraints.REMAINDER;
              gbc.weightx   = 0.0;
              gbl.setConstraints(status2, gbc);
              add(status2);
         public void setStatus1(String text)
              status1.setText((text == null || text.length() < 1) ? " " : text);
         public void setStatus2(String text)
              status2.setText((text == null || text.length() < 1) ? " " : text);

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

  • Problem in displaying messages in the status bar

    Hi all,
    I have a custom form and whenever user clicks on the save button after entering any data in it, i would like to display a message in the status bar(as like in standard oracle forms).
    I got the following solutions from some Guru's but it dint worked.
    Sol 1: Setting the CONSOLE WINDOW property of the form to the custom window name.
    I tried it and got the following error while compiling the form.
    FRM-40735: ON-ERROR trigger raised unhandled exception
    ORA-06508
    In my ON-ERROR trigger i have the standard code
    APP_STANDARD.EVENT('ON-ERROR');
    sol 2: writing the following code snippet in POST-INSERT or POST-UPDATE trigger
    clear_message;
    message('Data Saved', NO_ACKNOWLEDGE);
    synchronize;
    With both the solutions i dint get any positive output.
    Is there any other suggestions ?
    Thanks in Advance.
    Praveen

    A hack: at the end of init() put
    ActionListener hack = new ActionListener() {
    public void actionPerformed(ActionEvent evt) {          showStatus("My status message"); }
    new javax.swing.Timer(1000, hack).start();
    Then 1000 milliseconds after init() completes it'll display your message.
    There's got to be a cleaner way but if you're satisfied with this, great.
    Michael

  • The status bar is pushed up at about 3/4 of the screen, so I can view onlu firefox at about 1/4, good thing there is a scroll bar, but below the status bar is white display? can u please help me, I want to drag down the status bar so I can have a full vi

    The status bar is pushed up at about 3/4 of the screen, so I can view only Firefox at about 1/4, good thing there is a scroll bar, but below the status bar is white display? can u please help me, I want to drag down the status bar so I can have a full view
    == This happened ==
    Every time Firefox opened

    Your code is absolutely unreadable - even if someone was willing to
    help, it's simply impossible. I do give you a few tips, though: If you
    understand your code (i.e. if it really is YOUR code), you should be
    able to realize that your minimum and maximum never get set (thus they
    are both 0) and your exam 3 is set with the wrong value. SEE where
    those should get set and figure out why they're not. Chances are you
    are doing something to them that makes one 'if' fail or you just
    erroneously assign a wrong variable!

  • Error message in a BADI getting displayed in a popup instead of status bar

    Hello All,
    I have implemented a BADI in ECC6 to prevent the change of formula in ERP from transaction O3I8.
    The BADI gets called on clicking 'Save' from transaction o3I8.
    Within the  BADI i am giving an error message using the following command:
    Message e000(ZABC) .
    However , the message gets displayed in a pop up instead of the status bar .
    The same is for information and warning messages.
    Any suggestions on how to display them in the status bar ?
    TIA
    Regards,
    Vartika

    Hi Brad,
    The checkbox to display messages in pop-up  is already switched off.
    Still themessages are getting displayed in pop-up.
    Regards,
    Vartika

  • My blue task/status bar at the bottom of the page is no longer visible. How do I turn that back on? The status bar feature under view does display it.

    For some reason the blue status/task bar that would normally display at the bottom of the webpage (shows time, etc.) is no longer visible. I do not know how it got turned off and going to view-status bar simply enables a gray bar to display that says "done". I have searched using terms like "display task bar", etc and nothing comes up but view- status bar.
    == This happened ==
    Every time Firefox opened
    == May 5th

    That is the Windows Taskbar and not part of Firefox.
    The Firefox Status Bar shows messages like Looking up and Waiting for and loading and Done.
    If you do not see that Taskbar with Firefox closed then you may have hidden it.
    Try to move the mouse at the bottom and see if you can pull it up with the left mouse button pressed.
    If the Taskbar disappear if you open Firefox the check the Properties of the Taskbar to make sure that it is always visible.

Maybe you are looking for