Problem in Restoring the North Pane or title bar of internalframe

Hi, All I have removed the title bar of internal rame by the code ...
((javax.swing.plaf.basic.BasicInternalFrameUI) f.getUI()).setNorthPane(null);
but when i am restoring the title using the code
JComponent northPane = ((javax.swing.plaf.basic.BasicInternalFrameUI) f.getUI()).getNorthPane();
((javax.swing.plaf.basic.BasicInternalFrameUI) f.getUI()).setNorthPane(northPane);
i encountered by the exception
java.lang.Error: Do not use GraphManager.PieChart.add() use GraphManager.PieChart.getContentPane().add() instead
which is for the line setNorthPane(northPane)
this pie chart is my internal frame and i have already used getContentPane method...
to add components.....
Thanx in advance
Ravi

I solve my problem with the help for the tpic : "System menu of JInternalFrame". it explains how to change the NorthPane's component layout. I'm not too sure where this help topic is, but what's happening is with the following error message:
java.lang.Error: Do not use GraphManager.PieChart.add() use GraphManager.PieChart.getContentPane().add() instead
is that Sun's engineers are doing what the API documentation is telling the developers not to do and adamantly refused to correct it. I did run across a bug report and Sun's response is something like this:
the only effective way to handle changes to the title bar or the NorthPane is by using the setUI method...
;o)
V.V.

Similar Messages

  • I am getting error (-1) while updating my iPhone 4 to iOS 5.1. The phone has gone into a recovery mode. Restore fails every time at "restoring the firmware" stage. Striped bar remains for a long time, then shows "error (-1)" and the restore fails. Help!

    I am getting error (-1) while updating my iPhone 4 to iOS 5.1. The phone has gone into a recovery mode. Restore fails every time at "restoring the firmware" stage. Striped bar remains for a long time, then shows "error (-1)" and the restore fails. I have been doing it for last 12 hours. Help!

    Thanks for your reply Michalo. I am in India and here Apple care does not work on Sundays. I have been without my phone for the entire day. Perhaps tomorrow will bring some respite. There is not solution to "error (-1)" on any forum it seems. I found one forum which suggested use of Tiny Umbrella. Any idea about that?

  • How to change the color of a title bar

    Hello !
    I try to change the color from my title bars, but I fail.
    I tried to change the activeCaption value to an other colour, but that didn�t work. Currently I use a own LAF and set it with UIManager.setLookAndFeel("dpg.beans.GuiWindowsLookAndFeel");
    import javax.swing.UIDefaults;
    import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
    public class GuiWindowsLookAndFeel extends WindowsLookAndFeel {
      protected void initSystemColorDefaults(UIDefaults table) {
        String[] colors = {
           "activeCaption", "#B0171F" 
         loadSystemColors(table, colors, false);
    }I also used the complete stringarray from WindowsLookAndFeel and only changed that one color. Still no changes.
    Any ideas ?

    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        UIManager.put("activeCaption", new javax.swing.plaf.ColorUIResource(Color.YELLOW));
        JFrame.setDefaultLookAndFeelDecorated(true);
        JFrame f = new JFrame();
        f.setSize(200,100);
        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();
    }

  • Removing the minimize button from Title bar...

    Hi,
    I have created an desktop application using swing. I dont need minimized button on title bar of the main window. I searched a lot but could not find a solution. Can I get some useful links.
    What can I do ?
    Thanks

    Actually I want if the application is minimized, its state should not changed to iconified but it simple because hidden. And using the tray icon's option if application is open, it simple make the application visible. I did not want the following case which is happening right now.
    Case:
    1. I Minimized the application
    2. My application state becomes the iconified and it becomes hidden (As I have implemented the windowlistener)
    3. I used trayicon's Open option (it simply visible the application)
    4. Application becomes visible, but it is in iconified state. Because previously its state has been changed due to minimized button.I want whenever the Open option of tray icon is used, application must be visible in Maximized state. That why I also did on action listener of Open option
                            application.setState(NORMAL);
                            application.setExtendedState(MAXIMIZED_BOTH);
                            application.setVisible(true);That's why I planned to removed the minimize button from Title bar. But if it not possible then how can I avoid changing state of application when minimized button is used.
    thanks
    Jawahar Nayak

  • Problem with restoring the back-up after the firmw...

    Hello,
    I just made the latest firmware update. I went without problems, but I can not restore the back-up using the pc suite. It stops at 60-80%.
    Please help me, I need my old settings back on the phone.
    Cristian

    04-Jan-2008 11:53 AM
    likeitlikethat wrote:
    which version of PC suite and did you select only messages and contacts to restore. I have recent version 6.85.14 and restore messages and contacts with N73 successfully
    Hello,
    Thank you for your repolies. The problem was solve by updating the PCSuite to the latest version.

  • Problem in Restoring the database the database

    Hi guys,
    I am new to oracle , I am facing one problems is that , i having the backup of one oracle database in .dmp format.
    I have to restore it to 9i database. for that i have created on database , how to restore the backup file over the new database using oracle management server.
    Please give me the clue to do the things.

    1. setup your oracle environmentals and path. Usually this is easy to do if your database name is in your oratab file. From the command line type . oraenv -- that is dot-space-oraenv. When prompted enter the database sid in the same case that it is in the oratab file.
    2. from the command prompt enter
    imp file=<your dump file name> log=<your import log file name> full = y, ignore = y
    You will be prompted for username and password.
    More detailed information is available in the database administrators guide, and I thing the utilities guide.

  • Problem in Restoring the database

    Hi,
    I want to restore the database
    RMAN> startup force mount;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 07/20/2009 17:06:56
    RMAN-04014: startup failed: ORA-12514: TNS:listener does not currently know of s
    ervice requested in connect descriptor
    can anybody help on this.

    Hi,
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause:      The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:      
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Regards,
    Tom

  • Why did the browser window's title bar, menu, minimize, maximize, and close buttons all disappear, and how do I get them back?

    I am literally stuck in Firefox. Suddenly the window changed to full screen mode, and the title bar and Firefox menu disappeared, along with the close, minimize, and maximize buttons. All I can access are the menu bar and open browser tabs.
    I can't even access my dock (on Mac), which usually pops up when I mouse over the bottom of the screen.
    So, the only way it seems I can get out of Firefox is to shut down my computer by pressing the power button. Unless there is some keyboard shortcut. I tried command-11 but that just switched between open my browser tabs.
    FYI i have no idea what Ubuntu is and don't think I'm using it (that name seems to pop up when I google this problem)
    Oh yeah, also I'm using Firefox 3.6.2 because my elderly Mac is running on OSX 10.4.11. Have never had any problems with it before.

    IN your iTunes library, does the movie appear with a cloud on it for downloading?
    is the movie still in the iTunes Store?
    iTunes purchases the rights to sell a movie, but those are for a time limit.  If the right expires and apple doesn't renew, the movie is no longer available for download and must be saved in your library.   I suggest backing up your movies ASAP.  Check the store for this movie, perhaps it is still available. 

  • Windows moving spontaneously to the screen bottom - only title bar visible

    I have this odd behavior on my MBP after installing Lion.  I'll be replying to a message in Mail or moving a window in finder ... and suddenly the window disappears.  Sometimes I find it down at the bottom left of the screen, with only the title bar showing.  Other times, it will "walk" to the bottom of the screen on its own ... a "stutter step at a time," while I try in vain to stop it.
    In Mail, this will tend to happen if I start typing in the reply before the Genie has openened the message all the way.  In the Finder, it seems to happen if I move a window too quickly to the edge of a screen or across to my second monitor.
    It's slightly maddening, and a real waste of time as I watch helplessly as windows march their way to the bottom of the screen.  Any help is much appreciated.

    Hmmm ... Replying to my own message.
    After booting into safe mode, and seeing no problem, I began adding back my login items one at a time.
    It appears that the issues is with MenuEverywhere and 10.7 or 10.7.1.  Disable ME and all is well.
    I've opened a ticket with Binary Bakery.

  • The letter "P" in title bar during syncs

    In the black title bar during syncs, my iPod shows the letter "P" at the very center. My iPod is not named "P", so I wonder what this bug means...
    Anyone else have this?
    Kirk

    yep, I have that.
    Noticed the first time I synced. Interestingly enough, it only does that when I have the setting preference 'time in title' set to 'on'. Do you have that too?
    IMO, it is either a problem re-writing the word iPod in the title bar or PM, (but it might happen in the morning too, ie 'A' but haven't checked). The letter 'P' is perfectly centred, but in iPod and PM, 'P' is not centred. So maybe its something else..
    100% sure its a bug. I left feedback about it at http://www.apple.com/feedback/ipod.html
    You should do the same.

  • How can I change the color of a title bar?

    Ok, I have been looking for this answer for over a week now and nobody
    has yet given me an answer that works. So I am going to ask again.
    Here is a piece of code you can run to see what I am trying to do:
    public class RemoteDisplayFrame extends JFrame {
    public static final Color GRAY70 = new Color(179, 179, 179);
    public RemoteDisplayFrame() {
    super();
    public RemoteDisplayFrame(String title) {
    super(title);
         public void setBorderContent() {
    this.setUndecorated(true);
    JRootPane rootPane = this.getRootPane();
    rootPane.setWindowDecorationStyle( JRootPane.PLAIN_DIALOG );
    this.setRootPane( rootPane );
    public static void main( String [] args ) {
    RemoteDisplayFrame frame = new RemoteDisplayFrame( "Test Frame" );
    frame.setBorderContent();
    frame.pack();
    frame.show();
    Run this code and you should get a frame on your screen that has no
    close buttons, minimize buttons, or maximize buttons, and no menu.
    I want to change the title bar's color to a specific color.
    That color is GRAY70:
    public static final Color GRAY70 = new Color(179, 179, 179);
    If you have any idea on how to do this please do tell.

    AFAIK, you can't. I believe the title bar is rendered by the operating system, using the colors the user has chosen, consistently for all windows. Frankly, if your app could, it would annoy me, as I would still want all my windows to look consistent.

  • Firefox does not restore the previous session & the restore option in history is not given. this never happened until firefox 6, now 7. am I the only one having this problem, to restore the last session incl. the different group is very inconvenient..

    I restart pc / firefox about once a day & this only happened recently. I hope you can fix this.

    If this were just a Netflix problem, why can I access Netflix through Internet Explorer and not through Firefox? I've been using Firefox to access Netflix for at least the past year and starting yesterday (12/6/11) Firefox doesn't seem to recognize that Netflix exists. I've tried the suggested Firefox "help" which was of no help whatsoever and may even have made life more difficult in accessing other accounts. Anyone know how to contact Netflix or Firefox by phone?

  • I have a problem with restoring the ipad 4 firmware ... it says error ... how can i do fix it ???

    help me?

    If you can provide a detailed description of what you want to accomplish, what you have done so far and all the messages the device puts out, we may  be able to help.

  • How do I make the red-green-yellow icons and the text in window title bars larger?

    The title text is a little too small to just see - I have to concentrate on it to read it - and I can't tell the red-green-yellow icons apart without staring at them. Yes, my sight is quite poor; I'm already sitting as close as I can.

    sorry about the slang display portal, i just mean the entire screen, like a magnifying glass. There is probably a keystroke, and it's probally all in here:
    I do agree it's a concern, as I have a torn retina, and my eye gets strained quickly.

  • Remove the Navigation Pane Mini tool bar

    I have Robo Wizard's skinny on skins (which has been a GREAT
    HELP) to see if there is some magical way of making this little
    critter disappear. The only suggestion there is to set the bar size
    to 1 so it is still there but can't be seen.
    The problem is I have to work to very tight accessibility
    rules and have Jack boot wearing autocrats enforcing them. I have
    managed with the remnants of a smile to comply some how with all
    the requirements, from related topics buttons that are text and not
    buttons, relative text sizes everywhere including the related
    topics pop up to banishing tables and images.
    If I just hide the tool bar I'm going to have continued
    criticism over the use of frames, which I will have difficulty
    defending if I have item there that aren't used or seen.
    So to finally get to the point, does anyone know how to
    remove the mini tool bar?

    Unfortunately that's just a variation on the making the bar
    invisible but it still existing route. What I need is a way to
    remove the tool bar all together. What I don't want is the minibar
    to still exist and screen reader software still listing it when it
    performs no function in our help.
    I have looked to see which files define the minibar and it
    appears to be mainly in the whmsg java script file but it does not
    look like alterations to just this file will remove the bar from
    the help output entirely.
    Can the minibar be removed or am I stuck with more redundant
    code, frames etc cluttering up the output?

Maybe you are looking for

  • Text in the scheduling lines of a scheduling agreement.

    hi, is it possible to add text some where in the scheduling lines of a scheduling agreement (like how we can insert header text in the line item)??

  • No audio with avchd clips

    Hi, My video camera produces .mts files - avchd. Wanting a good editor I downloaded a Trial version of Premiere Pro CC  , BUT no matter what I tried - including many suggestions from on line users- could not get audio with any of my clips.  Prelude w

  • Segmentation Error

    I tried running Civ 3: Complete under 10.5.1, and it launched fine. Then, I exited it, and when I tried opening it again, it crashed before launching. I upgraded to 10.5.2, and it did the same thing. I literally connected the firewire hd the game app

  • Shut down after 2 seconds?

    Hey! I recently came back from holiday and, after leaving my MacBook off for about a week, went to turn it back on. Pressed the button, optical drive made its noise, and then the whole thing shut down (with the HDD making that whistling sound as it s

  • FM Area Updation

    Hi Gurus! I wnat to configure a senario that at the time of Purchase Requsition system update the commitment but at the time of Goods Receipt system show the amount as Consumed amount. can any body tell me that where i have to configure this senario