How to draw on the title bar of JFrame ?

Is there any way in which I can draw on the title bar of the JFrame. I want to display animation on the JFrame title bar. Is it possible in Swing! For example I want to display a set of concentric circles increasing and decreasing in radii.

What child window are you referring to? Do you mean a browser window opened with web.show_document?
If so, you can use javascript to hide browser toolbars and so on. Search the forum for some javascript examples where windows are opened with toolbar=no.

Similar Messages

  • How do you make the title bar display different text than the page title?

    I'm looking for a way for the title bar display of my web page to be different than the text in the actual nav bar created by iWeb. For instance, I'd like the nav bar to just say Home for my main page, but in the title bar in the browser say "blah blah blah."
    I know there has to be a way to do this. iWeb has actually done it on one page already, but I can't figure out how. I think it picked up the title bar text from the first text box in the page. For instance, the page name in the navigation bar is "blahs for today" but the browser title bar when you open that page says "blah blah," which happens to be the first line of text on the page. The page title in iWeb.app, though, is "blahs for today." But if I look at the source code it lists title as "blah blah."
    I'm guessing I might be able to work around by making an invisible text box with the text that I want in the title bar as the very first thing on the page, and hope iWeb makes that the title bar text. I'd rather have a more correct way of doing it.
    Is there a way of doing this in the source code without having to change a lot of stuff?
    Thanks for any help.

    Richard Kirkman1 wrote:
    I think it picked up the title bar text from the first text box in the page. (...) I'm guessing I might be able to work around by making an invisible text box with the text that I want in the title bar...
    Richard ~ The key is the default Title box that iWeb creates for every new page — it's that which you need to edit, not another text box you've created. And to make the text in that Title box invisible, see here.

  • How do I remove the title bar from a Palm PDA front panel?

    On several PDA screens, I need all the real esate I can get. The title bar chews up a lot of it.  Is there any way, in the vi settings or programmatically, that I can remove the title bar?
    I've already tried the obvious step of unchecking "window has a title bar" in the window appearance catagory of the vi properties.  No apparent effect is seen.

    Hello,
    It sounds like you are referring to the GUI actually on your Palm devices.  I believe on Palm devices all applications have a title bar, and there isn't a way to get rid of it.  My guess is that perhaps this is a feature you can enable/disable as a Palm OS setting, or may simply be the way the Palm has defined its user interface.  If you have your Palm devices handy, check out the display settings to see any has an option to remove the title bars in general.  If you find out either way, definitely repost so the community can find the answer here as well!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Unicode in the Title bar of JFrame

    Hi
    I have a unicode application and I am using the font Arial Unicode MS. I want to show unicode charecters in the title of my JFrame. I am able to show unicode chars in all other controls except for the title of the main JFrame.
    I read several posts on the forum and came to an understanding that, the title bar of the JFrame is controlled by the OS.
    So I changed the fonts used in my windows also to Arial Unicode MS. But still I see only ??? in place of unicode characters.
    Need urgent help.
    Thanks
    Vineet

    import java.awt.*;
    import javax.swing.*;
    public class X {
        public static void main(String[] args) {
            JFrame.setDefaultLookAndFeelDecorated(true);
            JFrame f = new JFrame("ABCabcXYZxyz");
            Font font = new Font("Lucida Bright", Font.BOLD|Font.ITALIC, 14);
            Container cp = f.getContentPane();
            JLayeredPane lp = f.getLayeredPane();
            for(int i=0, ub=lp.getComponentCount(); i<ub; ++i) {
                Component child = lp.getComponent(i);
                if (child != cp)
                    child.setFont(font);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(500,400);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }1. You have to use a LAF that draws its own title bar. If your platform is drawing your title bar, you'll
    have to go the JNI route :-(
    2. If you have a menu bar, it'll be in the layered pane as well, so you'll have to skip over the way
    content pane is skipped over...

  • Displaying the username in the title bar of jframe

    hi
    how to display the username entered by the user in the title bar of jframe

    I'm not sure what you mean by 'entered' but does the following help?
    import javax.swing.*;
    public class DisplayUserNameInTitleOfJFrame extends JFrame
        public DisplayUserNameInTitleOfJFrame()
            setTitle(System.getProperty("user.name"));
            setSize(640, 480);
        public static void main(String[] args)
            new DisplayUserNameInTitleOfJFrame().setVisible(true);
    }

  • Any way to get at the title bar in JFrame?

    I'd like to either add a button to the title bar (title pane?) or override the behavior of the resize button. As far as I can tell, the LookNFeel classes don't allow you to add anything, just change colors, icons, etc. The WindowListener classes don't let you get at the resize button. I don't want to override Component.setSize() (that causes other problems), I just want to have the resize button do something different (or add another button).
    I'd appreciate any ideas!

    1) You could create your own frame that extends JWindow. This would be quite involved, since you'd need to make it respond to mouse drags, mouse resizing etc explicitly (if you wanted that functionality), but you would be able to add your own custom border, which you could make to look like a system border, or you could make comletely different.
    2) I don't know this could be persuaded to do what you want, but you could try adding a ComponentListener to the JFrame to check for resizes, and take action accordingly

  • Displaying Jtimer in the title bar of jframe

    we have an urgent requirement to display Time (should run continously) and Date in the title bar of the java
    application. Please give input..

    To update a frame's title, call setTitle:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TitleUpdater {
        public static void main(String[] args) {
            final JFrame f = new JFrame("TitleUpdater");
            JButton btn = new JButton("press here");
            btn.addActionListener(new ActionListener(){
                int count = 0;
                public void actionPerformed(ActionEvent evt) {
                    ++count;
                    f.setTitle("pressed: " + count + " times.");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(btn, BorderLayout.NORTH);
            f.setSize(400,100);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • How do I chng the title bar text to lighter instead of blk over navy?

    I have the wolf image with navy title bar. Can't see the black text in the navy title bar. How do I change these colors? Already been to Tools/colors.

    I found a configuration on Web template parameters.
    WAD -> TEMPLATE -> Web Template parameters -> Behavior -> Template has ON ->
    Main Object Data Provider -> Data Provider DP_1) (or whatever you entitle your DP).
    Now the report shows the query tech name in the browser title.

  • How to catch drag event in the title bar of a jframe

    Hi
    I want to catch the drag event in the title bar for jframe, because I have a few more window, dialogs, which I want to move along with my main window
    Thanks

    you can use a listener like tih one below...it works if you don't move to quickly.....
    class SynchroMover extends ComponentAdapter{
      private JFrame master;
      private JFrame[]slaves;
      private int currentX;
      private int currentY;
      public SynchroMover(JFrame master,JFrame[]slaves){
        this.master = master;
        this.slaves = slaves;
        currentX =(int) master.getLocation().getX();
        currentY =(int) master.getLocation().getY();
      public void componentMoved(ComponentEvent e){
        int dx = (int)master.getLocation().getX() - currentX;
        int dy = (int)master.getLocation().getY() - currentY;
        System.out.println(dx+" "+dy);
        for(int i=0;i<slaves.length;i++)
          slaves.setLocation((int)(slaves[i].getLocation().getX()+dx),(int)(slaves[i].getLocation().getY()+dy));
    currentX = (int)master.getLocation().getX();
    currentY = (int)master.getLocation().getY();
    the code isn't optimized...so you can probably do better

  • How can I change the width and color of the title bar of the JFrame

    I would like to use the UImanager to change the look and feel of the title bar on all of my JFrames. How is this possible.
    Thanks in advance.

    I appologize for being rude, and thank you for your response.
    The reason I did not respond was that I don't think that your answer solves the question of top level containers (specifically JFrame). I have been researching the net and some of the text books to come up with an answer before I respond. To this point, I believe that the answer has something to do with changing the boundary. If this is the case I'm within four or five hours of the solution, and will publish. If not, back to the drawing board.

  • How to replace the icon in the title bar and minimized window

    I am not sure if this is a Swing question. But since nobody answered it in the Java Programming forum, let me place it here:
    I would like to set my own icon in the title bar and in the minimized window of my java application, replacing the java coffee cup icon.
    I am using:
    frame.setIconImage(new ImageIcon("image.gif").getImage())
    as was suggested previously in the Java Programming forum at:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=5212059
    This does create the icon in both places. However, it only works when I run the program from JBuilder 2006. It doesn't work if I run the program from the .jar or the .exe file.
    How can I make it work for my .jar and .exe file?
    Please help! Thanks!

    It doesn't work if I run the program from the .jar...working example for a .jar
    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame();
        Image img;
        try
          java.net.URL url = new java.net.URL(getClass().getResource("Save.gif"), "Save.gif");//correct capitalization required
          if (url != null)
            img = javax.imageio.ImageIO.read(url);
            f.setIconImage(img);
        catch(Exception e){}//do nothing - default will display
        f.setSize(200,200);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • How to change the position of the title bar in XFCE?

    I hate widescreens, but I bought one because only those are sold. There's a problem with them - The amount of text you can fit on the screen horizontally is quite low which means less lines of text and more scrolling. Also, I noticed that at least 50px is taken up by misc title bars and menus. There would be much more space if I got rid of them.
    Unfortunately, getting rid of them is not an option. I need them. I was thinking that it perhaps would be possible to move the title bars of the windows to the side of the window. Mockup of how it would work included. Do you know of any such solution? That would really help.
    Mockup: http://yfrog.com/j4screenshotesp

    Already been requested ( http://xfce.wikia.com/wiki/Wish_List ) but not yet available AFAIK.

  • After installing FF4 on 2 computers (both Win7Ultimate), one places tabs in the title bar, the other below it; how can I get both to place tabs in the title bar?

    I have the same options selected on each computer, both have "Tabs on top" selected.
    The one I am using now has a double-height title bar, with the Firefox botton on the top left, and tabs below it also on the left.
    The right side of the title bar is blank (semitransparent) space.

    Found the problem - on one computer, I run Firefox maximised, and Tabs go into the title bar.
    On the other, Firefox runs in an unmaximised window, and tabs sit below the title bar.
    This seems very silly.
    Hey, developers, how about keeping the tabs in the title bar all the time? This is a good feature spoilt by this quirk.
    How about changing it for the next update?

  • How to change the image in title bar for JFrames

    plz give me a small code to change the image of the JFrame in the Title bar.
    i know how to change the name of the title bar .
    import javax.swing.*;
    class Rathna1 extends JFrame
    Rathna1()
    super("rathna project ");
    public class Rathna
    public static void main(String ax[])throws Exception
    Rathna1 r=new Rathna1();
    r.setVisible(true);
    r.setSize(400,400);
    Like this how to change the image of the title bar
    Message was edited by:
    therathna

    hi,
    JFrame frame;
    frame.setVisible(true);
    frame.setIconImage(new ImageIcon("icons/img007.gif").getImage());
    frame.setSize(800,600);
    i think the thing u r searching is :
    frame.setIconImage(new ImageIcon("icons/img007.gif").getImage());
    ~~~radha

  • How to insert image in the title bar?

    Hi experts,
    how to insert the image or icon in the title bar of a screen, similar to the screen below.
    Att.,
    Luiz.

    Hi Luiz,
    You can create them in GUI Status. If you are using a module pool program uncomment SET PF-STATUS '<STATUS-NAME>' statement, double click on  <STATUS-NAME> and you will be directed to the screen for setting your GUI status.There you can create buttons with desired icons. If it is a report program add SET PF-STATUS '<STATUS-NAME>'  statement to your program and follow the same procedure.
    Refer the wiki for more details.
    GUI Status of A Program using Menu Painter - ABAP Development - SCN Wiki
    Regards
    Anoop

Maybe you are looking for

  • My PDF presets/joboptions dont work in Acrobat Pro 9.0 - help!

    We just upgraded from CS2 & Acrobat Pro 7 -- to CS4 & Acrobat Pro 9 - Windows. Previously I would  go here: C:/Documents  and Settings/All Users/Shared Documents/Adobe PDF/Settings to manage my  joboptions. But after my upgrade, when I go to create a

  • How do I prevent single-page PDFs from appearing inline in the email body?

    When someone sends me a multiple page PDF, the email contains an attachment icon.  When I click on the icon, the PDF is opened full-screen.  When I click on the screen, icons appear including a box with an arrow pointing up.  Clicking on this icon, l

  • Problem with Customer Interaction Module in Web Channel Builder

    Hello Everyone, Facing an issue with Web Channel Builder Customer Interaction Module. In Web channel builder we have done all the required configuration changes, but still we are not able to get the reviews and rating part in the product detail page.

  • New iTunes: cannot sync calendar with iPhone

    I just installed the new itunes and cannot sync my lokal and exchange calender with my iphone and ipad. No problems with the icloud calendars. I must have a solution for my exchange business calender!

  • Multiple data feeds to Informatica from SAP BI

    Guru's, I have the need to push multiple data streams out of our SAP BI system into Informatica. I can move a single Open Hub Destination in a process chain, but have the need to run multiple OHD's in the same process chain. I have tried doing this w