Re: [dev] [dwm] Windows size changes

From: David DEMELIER <demelier.david_AT_gmail.com>
Date: Sat, 13 Nov 2010 09:34:01 +0100

2010/11/12 pmarin <pacogeek_AT_gmail.com>:
> AWT_TOOLKIT = MToolkit.
> Sorry.
>
> On Fri, Nov 12, 2010 at 11:16 PM, pmarin <pacogeek_AT_gmail.com> wrote:
>> On Fri, Nov 12, 2010 at 7:58 PM, David DEMELIER
>> <demelier.david_AT_gmail.com> wrote:
>>> Hello,
>>>
>>> I was surprised to see that a java window does not update its content,
>>> in fact nothing changes. If you resize the window nothing happens and
>>> the usual behavior is that the window updates its content to the new
>>> size.
>>>
>>> On pekwm or gnome, it works. The window `stretch' its content to the
>>> maximal size, on dwm nothing happens it stays at white.
>>>
>>> You can try my little example program on a free wm and dwm :
>>>
>>> import javax.swing.*;
>>> import java.awt.*;
>>>
>>> public class Compteur extends JPanel {
>>>        JButton jp_plus;        /* Bouton plus */
>>>        JButton jp_minus;       /* Bouton moins */
>>>
>>>        JTextField jtf_field;   /* Affichage du compteur */
>>>
>>>        public Compteur() {
>>>                super ();
>>>                this.setLayout(new BorderLayout());
>>>
>>>                jp_plus = new JButton("+");
>>>                jp_minus = new JButton("-");
>>>
>>>                jtf_field = new JTextField("0", 20);
>>>
>>>                this.add(jp_plus, BorderLayout.WEST);
>>>                this.add(jtf_field, BorderLayout.CENTER);
>>>                this.add(jp_minus, BorderLayout.EAST);
>>>        }
>>>
>>>        public static void main(String[] args) {
>>>                JFrame jf = new JFrame("Exercice 2 : Compteur");
>>>                jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>>>                jf.setSize(400,100);
>>>
>>>                JPanel jp_cp = new Compteur();
>>>
>>>                jf.add(jp_cp);
>>>                jf.setVisible(true);
>>>        }
>>> }
>>>
>>> Kind regards,
>>>
>>> --
>>> Demelier David
>>>
>>>
>>
>> When I had problems with Java some years ago I remember to setup the
>> environment variable= Mtoolkit  and worked (with a very old version of
>> dwm)
>>
>
>

Thanks, but it seems this workaround only works for i386 while i'm on
amd64... What a pity

-- 
Demelier David
Received on Sat Nov 13 2010 - 09:34:01 CET

This archive was generated by hypermail 2.2.0 : Sat Nov 13 2010 - 09:36:02 CET