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

Similar Messages

  • The other day I had to reset my phone because i pulled it out from my laptop when it was updating. I then tried to restore it but i clicked the wrong option and it has restored all of my stuff from 2 years ago, is there any way to get back the stuff I had

    The other day I had to reset my phone because i pulled it out from my laptop when it was updating. I then tried to restore it but i clicked the wrong option and it has restored all of my stuff from 2 years ago, is there any way to get back the stuff I had

    maggielou wrote:
    I thought that I had backed up my pictures to icloud, but when I looked online at icloud, I don't see pictures listed.  However, a few of the recent pictures have shown up on my phone.
    IHow could I get these from my MacBook to my phone?
    Thanks again.
    When you log into you icloud account on your computer you are viewing data that you sync to icloud not the backups.  You can't view the backups.
    Look at the two links I provided.
    You still didn't answer any of my two questions I asked.

  • Had to restore iphone from a backup that was done 1 week ago.  any way to get back the texts, call logs, etc. that happened within the last week?

    this morning, i had to restore iphone from a backup that was done 1 week ago.  is there any way to get back the texts, call logs, etc that happened within the last week?

    No

  • Any way to auto hide the menu bar on the home scree?

    Any way to Auto Hide the menu bar at the top of the home screen?

    Use
    http://www.macupdate.com/app/mac/22217/menufela
    read Previously discussed
    https://discussions.apple.com/message/4727389#4727389

  • I downloaded Mountain Lion,when it opened up I no longer had any way of getting onto the internet. It on the Wi-Fi: no hardware installed?? Help!

    Can anyone help? I downloaded Mountain Lion and when it opened up I no longer had any way of getting onto the internet. On the Wi-Fi icon it shows: no hardware installed?? Help!

    Restart the router. Wait until all the lights are lit up properly.
    Restart the Computer.
    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    If this does not help, contact Apple.
    Best.

  • Is there any way to get back the Transformation if it is delted

    Hi Gurus,
    Is there any way to get back the transformation if it is delted in Dev box?
    Its very urgent

    Hi there,
                 The concept of transformation comes from BI 7.0. If you are talking about  3.5 then it is update rules , hope I got u right. Are you working on 0MATERIAL and its attributes ?? please confirm.
    goodluck.

  • How can I get back the title bar in Thunderbird 38?

    The title bar can be turned on and off in Firefox. In the current version of Thunderbird (31), the title bar is present by default and there is no option to turn it off. In the beta version (38), there is no title bar by default… but I can't believe that there's no way to get it back. So, where is this setting? I can't find it.

    I sure agree that the setting isn't easily discoverable, but that's too late for the 38.0 release given that string freezes went in effect already (the reason being that localizers have to translate all UI elements for their respective language).
    The respective [https://bugzilla.mozilla.org/show_bug.cgi?id=814571 bug report] has been up for more than two years, but thus far not much progress in terms of a solution acceptable by the developers. I don't know if the extension proposed in the last comment was ever developed and posted.

  • When closing multiple tabs, is there any way to get back the option of saving those tabs OR NOT for your next session, within the warning dialogue box itself?

    For brief period of time, not in FF4, there was the option whereby when I closed multiple tabs, a firefox dialogue box opened warning me that I'm about to close multiple tabs, '''AND ALSO''' asking me if wanted to save those tabs for my next session, or trash them.
    The primary issue IS NOT about saving tabs. The primary question here is about getting THE OPTION back to the CLOSING MULTIPLE TABS WARNING DIALOGUE.
    The use case here should be obvious. However, since it is clearly not obvious that different people work in a variety of ways, and neither of those methods of working is "wrong" or "right" I will elaborate: Some people, for whatever reason, it doesn't matter why, want to save all their tabs on some occasions, and on other occasions don't.
    This preference varies throughout the day. Therefore it is inefficient to constantly go to preferences and change whether or not I want firefox to open all my tabs from my last session. It is more LOGICAL to place an option in the multiple tab warning dialogue as well, for people whose preference constantly changes.
    This option was available for a time in most of the Firefox 3 versions. Is there any way to get back this option in Firefox 4?

    Firefox 4 saves the previous session automatically, so there is no need for asking if you want to save the current session.
    You can use "Firefox > History > Restore Previous Session" to get the previous session.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    You can set the warn prefs on the <b>about:config</b> page to <b>true</b> via the right-click context menu or toggle the value with a double left-click.
    * browser.showQuitWarning, see http://blog.zpao.com/post/3174360617/about-that-quit-dialog
    * browser.tabs.warnOnClose, see http://kb.mozillazine.org/About%3Aconfig_entries
    * browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
    * browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • I made a mistake and deleleted all the sent messages in my mail box is there any way to get all the messages back?

    and of course then i deleted everything that was in the trash before i understood that i made the wrong decision ... any way to get the messages back from Apple Servers?
    Of course, it's not the real truth, the real story is that i made that on my wyfe's computer and i'm now in real trouble with her!

    Unfortunately, I use Time Machine on my own computer (on my nas) but I never been succesfull trying to use Time Machine on the same Nas with my wife's computer ... so Time Machine is not the solution ... anyway that Apple could help? My life will be painfull for the next days !

  • Any way to get back the apps i bought?

    I have a feeling that i lost al the apps i bought for my iphone. During the last firmware update (2.1) the installation stopped, giving me a completely vague error. The only thing i could do (according to the messages on the phone) was to restore the phone. I did choose that option, not knowing that i would lose all my applications (that i didn't backup for quite a while).
    So, here i am with my empty iphone. Is there any way to get my applications back? I have a feeling there isn't and if that turns out to be the case, i think i have no other option than to jailbreak my device. I never had the plan to do so because i don't mind paying money for apps, but i'm not going to pay money again for the apps i already bought because i think that's quite ridiculous.
    Any ideas?

    Thank you! So much! That was easier than i thought and although i feel a little stupid, i'd expect Apple to make this a lot clearer in the interface.
    on the page for an app (that i already bought) i have to:
    1. click on the price
    2. the price changes into 'BUY NOW'
    3. i have to click on 'BUY NOW'
    4. appstore quits, preparing the app to intall
    5. a message appears that i already bought this one, and asks me if i want to install it again for free
    I never got to finish this whole procedure, i quit at step 3 assuming that i had to pay again. If anyone at Apple reads this: you might want to put the message in step 5 somewhere else, preferably before you have to click on a price and click on a buy button.
    Still thanks for the help

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

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

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

  • Is there any way to get around the 2.0 Ghz Intel core Duo proceser? My computer has a 1.83 Ghz Intel Core Duo. I TV needs 10.2 I Tunes which I cannot load on my computer. Need your help please

    I have a 1.83 Ghz Intel Core Duo Proceser that will not except the 10.2 I Tunes software. Is there any way that I can get around this issue short of buying a IPad.

    You just needed an excuse for that iPad, right?

Maybe you are looking for

  • DHCP doesn´t work to acquire IP adress via Airport

    Some words to my wireless configuration. My WLAN AP is an AVM FritzBox WLAN 7050 with internal DHCP services disabled. DHCP services in the 192.168.9.0 network are provided by a Linux Server on 192.168.9.1 (range 192.168.9.200-254). Windows WLAN clie

  • Can't PING a Datasource from  Sun AppServer 1.4

    posted February 25, 2004 06:49 PM Hi all! I am trying to create a datasoure in Sun AppServer 1.4 Developer Release. To connect to MySQL After download and installed the mysql-connector, I created a connection pool in the appserver called mySQLconPool

  • How may spool request can I create in the backend?...

    Hi Experts, How may spool request can I create in the backend? If yes, is there anywhere in the system can I set this value to increase number of spool request per user. Is there any condition which can prevent me create a new spool request? Yes all

  • Speaker turns off everytime I answer phone

    I have a bluetooth earpiece with A2DP capability (Jabra BT8040). I like to have the sound set to speaker as a default (otherwise you can't hear the phone ring or get notifications) but whenever I use the bluetooth earpiece it automatically sets ALL s

  • How can I get microsoft office on a Macbook Air?

    Hey everyone, I'm still making the dission between whatt mac to buy but if i bought the macbook air how will i be able to get micrOsoft office on it since it dosen't have a SuperDrive? Thanks ;)