JInternalFrame won't resize

Hi ;
I have a JInternalFrame's that won't resize (and won't deiconify) .
Actualy it's my own JInternalFrames ; but in the constructor I call "super(title,true,true,true,true)" . the strange thing is that using :
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
[or UIManager.getSystemLookAndFeelClassName() or getCrossPlatformLookAndFeelClassName() ]
the resize doesn't work but using the "com.sun.java.swing.plaf.motif.MotifLookAndFeel" it will resize and deiconify .
Does anyone have an idea what causes it ?
thanks;
Adaya .

It has something to do with the BorderLayout (that worked with the jdk1.2 version ... now I am working with jdk1.4) , because when I removed the setLayout from the contentpane it worked - but now I am facing another problem , using the BorderLayout I had order in my frame , that contains not only JInternalFrames , but also a menu toolbar and an textfield that desplays output to the user .
Any idea?
thanks ;
Adaya .

Similar Messages

  • My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    Double-tap the screen with three fingers to disable Zoom.
    To turn off Zoom go to Settings > General > Accessibility > Zoom and turn this Off.

  • Disk Utility won't resize a partition

    Disk Utility won't resize (eliminate smaller partition from a 2-partitioned internal) Hard Drive. This is the message I get:
    "Partition failed
    Partition failed with the error:
    Filesystem resize support required, such as HFS+ with Journaling enabled."
    Help files offer no information on this error. I followed the Help instructions to do this operation, but the resize doesn't work. The older, smaller partition shows up in Disk Utility but is dimmed out. It will activate at highlight, but is not recognized on the desktop.
    Any suggestions as to how to fix this problem?

    Intel based Macs use a different partition scheme called GPL or GUID rather than what PowerPC used, APL.
    You could try reformatting, or get a new system, and run BootCamp and Windows even.
    Even if you've used Macs for years, there is always a place on my book shelf for this one, David Pogue's "Mac OS X: The Missing Manual (Leopard Edition)"
    http://books.slashdot.org/books/08/02/27/1551206.shtml

  • Adobe camera raw window won't resize and can't reach buttons

    When I open an image from bridge into adobe camera raw 6.1 (Photoshop CS5) on my laptop, the camera raw window fills all of the screen (top to bottom) and the buttons at the bottom of the window are below the task bar. Thus I can't open the image in photoshop except by hitting the enter key. I can't reach the open, etc buttons. The window won't resize and there are no icon/buttons in the right upper corner to go to/from full screen. When I hit the icon in the top right hand menu bar in ACR (to go to full screen size) the window then fills the whole width of the screen in addition to the height, but no matter what I do I can't get the height of the window to shrink, so that I can access the icons at the bottom of the screen. What am I missing? Thanks

    Don't worry about turning aero off just yet.
    There are two key first questions:
    What is your screen resolution (width in pixels x height in pixels)?  Right-click on desktop, choose Screen Resolution.
    What setting have you chosen for the display size (Smaller, Medium, Larger) in the Display dialog?  Right-click on desktop, choose Personalize, then Display.
    -Noel

  • Blogger (blogspot) mobile site won't resize images

    Blogger has supported mobile version webview. When using Firefox android browsing blogger, the images are not resize to smaller ones.
    As image below:
    http://imgur.com/WWdDFLE
    Firefox for android, the image won't resize to smaller one, but other browsers do.

    This is likely a problem with the data blogger sends to Firefox. You can log a bug report at https://webcompat.com/ and technical people will do some diagnosis of the issue.

  • GarageBand window won't resize

    Garage Band window won't resize...I can see the bottom but not the top..if I do anything to it, I lose the bottom completely and have to start from scratch.

    something quick to try; assuming you are already at your highest resolution, toggle it to a lower rez and then back to the higher rez.

  • IMessage photos won't resize...

    Correct me if I'm wrong, but it seems prior to ios 7 when I would copy and paste a photo from somewhere on the internet, iMessage would always resize the photo so you could see the full picture.....but now it seems in ios 7, that most of the times when I copy and paste a picture into a message, it tries to use the full resolution, and won't resize to fit the little message window.  Anyone else notice this?  It's very annoying and I hope it can be addressed in a patch at some point. 

    no one else is having this issue or concern?

  • GIF Files Won't Resize

    I have a few gif files that I inherited that were very poor quality.  I've spent a lot of time cleaning them up.  I need to resize them to about half their current size without resampling because I need to retain the quality.  I go to Image > Resize > Image Size and enter the correct size.  I then save the file, but when I reopen the file, it reverts back to the original size.  I need to resize them before I can complete the project and turn it over.
    I've also tried saving them as jpg and resizing, and that works.  BUT when I further convert them back to a gif I'm back to the same problem.  Does anyone have idea of what I could try next or what the problem is?
    Thanks...

    Thanks you so much for your response.  I did go into RGB, and it didn't
    make any difference.  These files are not for the web.  They will be used
    inside a program currently under development.  Depending on selection
    criteria, a graphic may be selected and inserted into a template to be
    printed along with other nongraphical elements.  Since they will be
    printed, the quality is important.  In addition to the requirement that
    they be in gif format, they must be the exact size.  I was instructed
    scalable files are not acceptable.
    Any additional thoughts will be greatly appreciated.
    Liz
    Barbara Brundage <[email protected]>
    07/20/2009 11:51 AM
    Please respond to
    [email protected]
    To
    Elizabeth A Kaminski/AE/DuPont@DuPont
    cc
    Subject
    GIF Files Won't Resize
    Try going to Image>Mode>RGB first. However, you do realize that if you
    want gifs for web use, you MUST resample to resize them? (I'd use save for
    web for this, myself, rather than the PSE image size dialog.). If these
    aren't for the web, are you sure you need to keep them as gif files rather
    than another format?

  • Trim Edit window won't resize

    This is odd.
    When I double click an edit point to open the trim edit window, it opens up about 50% smaller than it should to cover the viewer and canvas. Even more strange, it won't let me resize the trim edit window. I go to the corner and try to pull it around, but it won't move.
    Any ideas?

    something quick to try; assuming you are already at your highest resolution, toggle it to a lower rez and then back to the higher rez.

  • Jinternalframe won't hide more than once.

    hiya,
    i have a jinternalframe and when i click the close button it hides, but if i show it again and then try to click the close button it doesn't hide. the following code demonstrates the problem - click open then the x to close the internalframe then open again and try to hide the frame. nb i am using jdk1.2.2, i'm not sure if it happens in jdk1.3, but i could really do with a workaround for this...anyone got one?
    thanks!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JDesktopPane;
    public class Test extends Frame implements ActionListener {
        JButton openButton;
        JLayeredPane desktop;
        JInternalFrame internalFrame;
        public Test() {
            super("Internal Frame Demo");
            setSize(500,400);
            this.addWindowListener(new WindowAdapter() {
                                       public void windowClosing(WindowEvent evt) {
                                           Window win = evt.getWindow();
                                           win.setVisible(false);
                                           win.dispose();
                                           System.exit(0);
            openButton = new JButton("Open");
            Panel p = new Panel();
            p.add(openButton);
            add(p, BorderLayout.SOUTH);
            openButton.addActionListener(this);
            // Set up the layered pane
            desktop = new JDesktopPane();
            desktop.setOpaque(true);
            add(desktop, BorderLayout.CENTER);
        public void actionPerformed(ActionEvent e) {
            if ((internalFrame == null)) {
                System.out.println("making new frame");
                internalFrame = new JInternalFrame("Internal Frame", true, true, true, true);
                internalFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
                internalFrame.setBounds(50, 50, 200, 100);
            boolean there = false;
            for (int i = 0; i < desktop.getComponentCount(); i++) {
                if (desktop.getComponent(i).equals(internalFrame))
                    System.out.println("already there.");
                    there = true;
            if (!there) desktop.add(internalFrame, new Integer(1));   
            internalFrame.show();
        public static void main(String args[]) {
            Test sif = new Test();
            sif.setVisible(true);

    By Default with JBuilder u have this internalframe and
    JDeskTopPane!!!
    it works just fine (closing and opening again)::::
    Why don't u work with independent classes like:
    JDesktopPane(1), several (JInternalFrame) ???
    // example JDesktopPane ::
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Desktop extends JFrame {
    BorderLayout borderLayout1 = new BorderLayout();
    private JDesktopPane desktopPane = new JDesktopPane();
    JMenuBar menuBar1 = new JMenuBar();
    JMenu menuFile = new JMenu();
    JMenuItem menuFileNewFrame = new JMenuItem();
    public Desktop() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    public void jbInit() throws Exception {
    this.getContentPane().setLayout(borderLayout1);
    this.setContentPane(desktopPane);
    this.setSize(new Dimension(600, 400));
    menuFile.setText("File");
    menuFileNewFrame.setText("New Frame");
    menuFileNewFrame.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    fileNewFrame_actionPerformed(e);
    menuFile.add(menuFileNewFrame);
    menuBar1.add(menuFile);
    this.setJMenuBar(menuBar1);
    static public void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    Desktop desktop = new Desktop();
    desktop.setVisible(true);
    void fileNewFrame_actionPerformed(ActionEvent e) {
    InternalFrame frame = new InternalFrame();
    frame.setBounds(0, 0, 450, 300);
    desktopPane.add(frame, new Integer(1));
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if(e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    // example JInternalFrame ::
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class InternalFrame extends JInternalFrame {
    BorderLayout borderLayout1 = new BorderLayout();
    public InternalFrame() {
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    public void jbInit() throws Exception {
    this.setClosable(true);
    this.setIconifiable(true);
    this.setMaximizable(true);
    this.setResizable(true);
    this.getContentPane().setLayout(borderLayout1);
    }

  • Finder window won't resize after switching spaces

    I've got my mbp set up with 12 spaces and designate apps to particular spaces.
    When I open a new finder window in space 2, I can move it and resize it no problem.
    If I then switch to another space and then switch back to space 2, I can't resize the finder window. I can still move it, but just can't resize it.
    Does anyone know a way around this bug?
    Thanks!

    I can also confirm this bug.  Finder windows seem to "forget" where they are on the screen.  This is very clear when renaming a file: the highlighted, editable filename text shows up some seemingly random distance from the filename displayed in the Finder window.
    This can also be seen when using Quick Look.  The file zooms to the full Quick Look preview not from the file icon, but from some random point on the screen.
    Same goes for dragging and dropping.  For example, if you want to drag a file into an existing folder, you have to hover some distance from the actual folder, the same distance you see when you rename a file or use Quick Look.  The Finder window doesn't know its position on the screen after using Spaces or Expose.

  • JTable won't resize

    hi !
    I'm having problems with a JTable
    I can't find out how to resize its width
    I just create it the classic way and insert it in a JPanel
    DataModel dataModel = new MyCustomTableModel();
    JTable table = new JTable(dataModel);
    JScrollPane tablePane = new JScrollPane(table);
    myPanel.add(JScrollPane, BorderLayout.SOUTH);all sizes are auto-manages (no such thing as setPreferredSize(...)), but no matter how many columns there are in the JTable, it is always the same size, and I can't seem to control this size in any way. I tried messing around with setSize(...) and setPreferredSize(...) of the table and JScrollPane instances, tried resizing the table columns, but only faced the frustration of seeing nothing happening all the time
    is there a way I can effectively resize the table width ?

    okay - nevermind
    I don't know if it's the best way to do it, but I solved it by overriding update
    public void update(Graphics g){
              super.update(g);
              if(!updated){
                   tablePane.setPreferredSize(new Dimension(
                        tablePanel.getSize().width - 50,
                        tablePanel.getSize().height - 50));
                   updated = true;
                   tablePanel.revalidate();
                   tablePanel.repaint();
                   this.repaint();
              else
                   updated = false;
         }

  • Illustrator text won't resize.

    Hi there,
    I am using Illustrator CS2. I want to be able to tpye and then resize and change the font. I thought I would just have to type the words and then click the selection tool which would select all the text and allow me to pull the side to resize it. That does not work for me. Am I doing this wrong? Also I thought I would be able to type words and then click on different fonts and see the text change on the screen as I go from font to font but that does not work either. I must be doing something wrong here. Any help will be appreciated.
    Thank you.

    mancunian,
    I am using Illustrator CS2. I want to be able to tpye and then resize and change the font. I thought I would just have to type the words and then click the selection tool which would select all the text and allow me to pull the side to resize it. That does not work for me. Am I doing this wrong?
    You can drag a corner of the Bounding Box (if it is shown, see View) and resize that way (proportionally if you hold Shift at the same time).
    Also I thought I would be able to type words and then click on different fonts and see the text change on the screen as I go from font to font but that does not work either. I must be doing something wrong here. Any help will be appreciated.
    If you type (with the Type Tool) and click a new font/size/whatever, the next letter(s) should be changed accordingly.
    If things do not work, you may need to reset the preferences or close down disturbing applications, see Move the folder or Other options

  • My Finder Sidebar Won't Resize

    My finder window's sidebar appears to be locked and I cannot resize it.  I've read that when putting my mouse in the line between the sidebar and the files area to the right it should change to a bar cursor that I can then use to resize the sidebar.  But the cursor never changes when I do this so I cannot resize the sidebar.  Any suggestions to re-enable this?

    If you can't get this to happen...EDIT: Well it did not include the cursor as a cross in the image for forget the screenshot.
    Then go to Finder "Go" menu hold the option key and choose Library. Then go to Preferences trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.)

  • Save for Web won't resize

    Anyone else having issues with the Save for Web in Illustrator CS6? I am on a Windows 7 system and now that the APPLY button is gone Save for Web is not working.
    Put in a new size and nothing happens. If I fiddle with random buttons for 5-10 minutes I can finally get the image to refresh to the size I want, but it's all random and doesn't work the same everytime.
    Makes a 3 sec job take 15 mins which is terrible. Going to go back to CS5 if there's no fix for this.

    So, just to make sure it's not user error. If I put 350 px in the Width field and then hit tab tab the image should refresh to the 350 px right?
    It doesn't, it just stays the original size.
    If I hit tab 3 times (so Art Optimized is highlighted) then my Width field that I changed to 350 px goes BACK to the original px size automatically. 350 px is changed back to the original 285 px and the image never refreshes to a larger size.
    It would be nice if it were user error so let me know if I am missing something.
    Extra note: if I put in a MUCH smaller or larger px size than the orginal image say 10px from an original 285 px, or 600 px from an original 285 px it works perfectly. If I put in 350 px from an original 285 px it works like 1 out of 14 times??? Honestly, I counted.
    It's like it notices a large size change but most of the time it doesn't respond to a slight size change. Am I missing something?
    If I put in 10px and it works. Close it out, go back in then the 350 px works (right after the 10 px sucessful resize). Close again, try 350 px and it doesn't work, nor does it work at 350 px again for the next 10-12 times, it just changes right back to 285 px as soon as I tab 3 times.
    That seems crazy to me.
    Thanks again for trying to help.

Maybe you are looking for