Status Bar at the bottom of applet

Hi,
How can I get rid of Status bar at the bottom of an applet?
I dont' wana see word "Java Applet Started". I have called
JFrame.setDefaultLookAndFeelDecorated(true);
Everything is fine, but the unwanted status bar at the bottom.
Any help is greatly appreciated.
Regards

Howdy.
Not sure what you are trying to achieve here. The appletviewer sounds like it is working as designed. If you are writing an applet then I'd assume that you intend for it to be accessed via a web browser. The appletviewer is simply a test mechanism.
However, your concern about the way in which the appletviewer presents itself leads me to think that you are intending all users to run your app. using the appletviewer. If this is the case then why not just create the frame directly? This code does just that.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class SimpleJFrame extends JFrame {
     public static void main(String[] a){
          SimpleJFrame cleanFrame = new SimpleJFrame();
     SimpleJFrame() {
          // user interface
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setTitle("SimpleJFrame");
          Container cp = getContentPane();
          cp.setLayout(new FlowLayout());
          cp.add(new JButton("Press"));
          cp.add(new JTextField(8));
          pack();
          show();
}regards
sjl

Similar Messages

  • How can I create a status bar at the bottom of a window ?

    I would like to create a status bar at the bottom of my main window similiar to "Internet explorer" has. I thought of using a tool bar but I can't see how to keep it positioned at the bottom of the window when the window is resizable. Any other ideas on how to do this the bar only needs to contain a small amout of text and maybe an icon or two.

    CVI doesn't have a status bar control on UI element like the one available in Visual Studio++. The best way to replicate this is most like through a string control that is resized and positioned to remain at the bottom of the window and colored to look appropriately. I have also seen the combination of a decoration and a text message used.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • 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

  • Status bar at the bottom of the screen stops working. need to fix it.

    When I upgrade Thunderbird there is a status bar at the bottom of the page that shows what account is being logged into and what the status is of the login process. (this is real time) What happens after a while is that the status no longer works and all I see is Unread: X and Total: X. I really would like the feature to work as it lets me know when I have connectivity issues. Either there is a bug in the software or some add on is messing thunderbird up. I have tried to disable all add ons and other features to no avail, so I think this is more of a bug. How to I fix the problem?

    The add on Adblocker Plus is known to cause this problem. Are you sure you do not have this add on active? After disabling the add on restart Thunderbird and then check the status bar operation.

  • HT1386 When I try to sync my iphone with itunes, it tells me in a warning that I don't have enough memory and yet the status bar on the bottom says I do and I know that I have enough memory.What's as

    When I try to sync my iphone with itunes, it tells me a warning that I don't have enough memory and yet the status bar at the bottom says that I do and I know that I have enough memory. What's the problem? It happens with the ipods and ipad as well!!!

    The new iTunes has a somewhat different look from the previous version.  You can get the old look back if you prefer it by doing View > Show Sidebar in iTunes.  Or you can adapt to the new look.

  • When I view the summary of content on my iphone5, the status bar at the bottom to the iTunes window shows I have 3.90 Gb's of "other".  What is that about and how can I free up that space?

    when I view the summary of content on my iphone5, the status bar at the bottom to the iTunes window shows I have 3.90 Gb's of "other".  What is that about and how can I free up that space? 

    I simply restored my iPhone from most recent  iCloud  backup.  Poof. Good to go!!!

  • How can I keep the download window plus a status bar in the bottom side of my navigator?

    I downloaded firefox 4 today and the first thing I noticed is that my status bar for downloads at the bottom side of my navigator it's gone! so I downloaded a plugin called "statusbar" and I don't like it at all... it is nothing like my old status bar and it takes away my big download window (the one that you can see even if you minimize the navigator); how can I make it back??
    I like to have both things (the big window and the status bar) and I can't make it back using the options of the plugin.
    Besides that, if I have the new statusbar it doesn't advice me when the download ends (that note that pops up when it's over saying "download finished" really useful when you're watching a video on fullscreen) and I can't change that either from the plugin options!
    I know that not every plugin are made by firefox so if you can't help me please let me know anyway so I can go back to the latest firefox version to have my big downoloads window plus the statusbar at the bottom and the note all at a time!
    THANK YOU!!
    =)

    Hi piepkorg-
    Does your Add-ons manager show the weather toolbar as being installed? I would recommend starting with this article- particularly the sections on managing Add-ons and troubleshooting:
    [[Using plugins with Firefox]]
    Hope that helps!

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

  • How do I get Javascript to work? It is enabled in options but nothing happens when I select something that begins "javascript" on the status bar at the bottom of screen.

    When I tried to download a file from the Canon U.S.A, I clicked on the "I agree - begin download" button and nothing happened. The information in the status bar at bottom of screen, when the mouse cursor is over the download button is "javascript:downloadFile()". I got following from the error console -
    Error: The stylesheet http://www.usa.canon.com/wsss/GeneratedPages/wsss_xsl/global.css was not loaded because its MIME type, "text/html", is not "text/css".
    Source File: http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/i_series/i950_series?selectedName=DriversAndSoftware
    There were also many warnings about parsing of commands.
    This sort of thing seems to happens whenever whenever javascript is involved.

    I checked out the "Unable to download or save files" section. The only thing that seemed applicable was the "Reset download actions" section. I renamed the mimeTypes.rdf file to mimeTypes.rdf.old but it didn't seem to have any effect on downloading the file I wanted. There was still no response when I asked for the download.
    I have noticed another problem that occurs when I try to download this file. I exit Firefox, then try to restart it. But nothing happens. I have discovered that in the Task Manager that the Firefox process is still running. When I end the Firefox process in the Task Manager, I am then able to restart Firefox.
    By the way, I am able to download the file using Internet Explorer without difficulty.

  • 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 do I view the Horizontal Scrolling bar and status bar at the bottom of the screen. I can only see the top menus, toolbars and vertical scroll bar?

    Before the most recent upgrade, the bottom horizontal scrolling bar and status bar appeared on my screen. Now since upgrading, I cannot see the. Anyone ideas how to restore them?

    If you haven't already, you could force-quit Quicktime by using the menu option from the desktop (finder) and choose Quicktime.
    Not sure what you have frozen on the screen, be it a failed movie, or some unusual screen shot. If you can find by date (created) you may be able to look for .mov or quicktime suffix name or other video file content to delete it.
    And you may have to restart your computer and perhaps run repair disk permissions from Disk Utility's first aid on the hard disk drive in your computer.
    Not sure if all that would help now, but it is something a few days late...!
    Good luck & happy computing!

  • How do I get rid of the new "status bar" at the bottom of the page where the web address pops up?

    On the left hand side of the page in the bottom corner, the web address pops up every time a new page is loading. What if I don't want that? How do I disable it?

    miss.bev.brown, Right-click on a toolbar, then click on teh "Add-on bar" entry to de-select it.
    If the add-on bar keeps coming back, you will have an add-on that is causing this. One that does this is the McAfee Site Advisor, disabling or uninstalling it stops that from happening.

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

  • Where is the refresh button and where is the bar at the bottom of the page that gives the loading status of the page? Why did you mess with something that was perfectly fine??

    I updated to firefox 4 and it's not as good as the former version. There is no refresh button, and I use that a lot. There is no loading status bar at the bottom of the page and I liked the tabs BELOW the page address.
    Why do you keep changing things, just for the H**L of it...

    In Firefox 4 by default the Stop, Go and Reload (Refresh) buttons are combined and attached to the right hand edge of the location bar.
    When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
    If you want separate buttons, right-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar
    For details about what happened to the status bar see https://support.mozilla.com/kb/what-happened-status-bar

  • How do I keep my status bar at the top and not moving from side to side and bottom of phone

    how do I keep my status bar at the top of my phone? I let my grandsn play a game on my phone and after he gave it back I noticed my status bar would move from the top to the side or bottom etc

    Reset, hold both home and power buttons until the iPhone begins to restart itself, ignore the slide to power off slider. Let the iPhone restart itself. Usually takes about 10 seconds of holding both buttons.
    Probably do not need this, but Portrait Lock can be set by, pressing home button twice quickly, slide bottom row of icons to the right one time, tap the Portrait Lock icon.

Maybe you are looking for