#2947 Maximizing window does not resize text area

normal bug
closed
nobody
5
2007-09-30
2007-09-15
Jeff Dickey
No

When the "maximize" button is clicked on the OS window frame surrounding the JEdit window, the window is maximized but the text area (where any file would be edited) is not resized.

Jedit 4.3pre10 using Sun Java 1.6.0 on Debian Linux
uname -a gives "Linux endurance 2.6.20-16-generic #2 SMP Fri Aug 31 00:55:27 UTC 2007 i686 GNU/Linux"

Discussion

  • Jeff Dickey

    Jeff Dickey - 2007-09-15

    Snapshot of application window maximized but editing area original size

     
    Attachments
  • Marcelo Vanzin

    Marcelo Vanzin - 2007-09-15

    Logged In: YES
    user_id=75113
    Originator: NO

    Are you using compiz or beryl as the window manager by any chance?

     
  • sc_deimos

    sc_deimos - 2007-09-30

    Logged In: YES
    user_id=1189857
    Originator: NO

    I'm having a similar problem. When I start jEdit I can resize the main window frame to my heart's content but the contents (text area, scrollbars, etc) retain their original dimensions. If I switch the Window Manager to Metacity and back to Beryl then the contents will start to resize with the main window for as long as I keep jEdit open.

    OS: Ubuntu 7.04 Feisty Fawn
    GUI: Gnome Desktop 2.18.1 (Synaptic version: 2.18.1-0ubuntu1)
    Window manager: Beryl (Synaptic version: 0.2.1-0ubuntu2)
    Java -version: Java(TM) SE Runtime Environment (build 1.6.0-b105)
    jEdit: jEdit version 4.2final (Synaptic version: 3:4.2.0-1)

    I tried jEdit version 4.3pre as well and it displayed the same symptoms. None of my other Java apps seem to display this issue.

     
  • Marcelo Vanzin

    Marcelo Vanzin - 2007-09-30

    Logged In: YES
    user_id=75113
    Originator: NO

    Since the original reporter didn't update the bug, I'll closed based on your comments. :-) This is a problem with the JVM when running under Beryl/Compiz, not jEdit, and will affect all your Swing-based Java apps.

     
  • Marcelo Vanzin

    Marcelo Vanzin - 2007-09-30
    • status: open --> closed
     
  • Seph Soliman

    Seph Soliman - 2007-09-30

    Logged In: YES
    user_id=831311
    Originator: NO

    This is a known issue, as previously stated.

    You may enable a workaround by setting the environmentvariable:
    AWT_TOOLKIT=MToolkit
    in the launch-script, possibly in /usr/bin/jedit or /usr/local/bin/jedit

     
  • sc_deimos

    sc_deimos - 2007-09-30

    Logged In: YES
    user_id=1189857
    Originator: NO

    Hi scarlac, in my case it's /usr/bin/jedit

    Adding "AWT_TOOLKIT=MToolkit" made no difference at all. Adding "export AWT_TOOLKIT=MToolkit" instead caused JRE to crash with the following output:
    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    # SIGSEGV (0xb) at pc=0x00002b6bf7d16385, pid=15638, tid=1076017472
    #
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-b105 mixed mode)
    # Problematic frame:
    # C [libc.so.6+0x2f385] catgets+0x15
    #
    # An error report file with more information is saved as /tmp/hs_err_pid15638.log
    #
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    #
    Aborted (core dumped)

    I'll remove the line for now and stick with the switching window manager workaround.

     
  • Seph Soliman

    Seph Soliman - 2007-09-30

    Logged In: YES
    user_id=831311
    Originator: NO

    > # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-b105 mixed mode)

    Can you try upgrading your java to a final version? I think the most recent is 1.6.0 update 2. Seems like you are running a beta.

     
  • Victor A. Rodriguez

    Logged In: YES
    user_id=23237
    Originator: NO

    I'm using Java 1.5.0_13 (see below) and suffering the same problem. My workaround: stop compiz, start jedit and start compiz again. You will have no problem unless you close an open jEdit again:

    # java -version
    java version "1.5.0_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_13-b05, mixed mode)
    # jedit -version
    jEdit 4.3pre10

     
  • Binil Thomas

    Binil Thomas - 2008-05-20

    Logged In: YES
    user_id=1222054
    Originator: NO

    Switching off compiz, resizing the window, and then switching back to compiz works for me. I am assuming that Jedit persists the size of the buffer text area onto disk somewhere. If so, is that easily editable by hand? Where is this file located?

     
  • Townsfolk

    Townsfolk - 2008-10-20

    There seems to be issues with Java and eye-candy.

    Setting this variable in /etc/profile worked for me.

    export AWT_TOOLKIT=MToolkit

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks