Issues with setLocation/setSize and fvwm/fvwm2
Anyone familiar with these two bugs?
http://developer.java.sun.com/developer/bugParade/bugs/4395578.html
http://developer.java.sun.com/developer/bugParade/bugs/4392053.html
I can still reproduce them in FCS-02a using fvwm and fvwm2. Below is
an example to illustrate. If I switch to say icewm then back to fvwm2,
things work OK. Are we getting it right for most window managers, but
not fvwm? Or is fvwm not giving us enough information to get it right?
We've tangled with this issue before in MATLAB, and have code to get
the insets right across the board. Before I dig into the VM and start
poking around I thought I'd ask here if anyone had any advice or pointers
into the code.
Thanks for any thoughts or info --
Greg
/* --- */
/*
* Initial dialog should be 400x300.
* Resized dialog should be 600x400.
* With Java2 and fvwm, its often wildly wrong
*/
import java.awt.*;
import java.awt.event.*;
public class DialogTest {
static Frame f;
static Dialog d;
public static void main(String[] args) {
// Create frame
f = new Frame("Dialog Test");
f.setLayout(new FlowLayout());
f.setLocation(100,100);
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
// Add buttons to frame
Button b = new Button("Show Dialog");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (d != null) return;
// Create dialog
d = new Dialog(f,"Test");
d.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
d.dispose();
d = null;
}
});
d.setLocation(200,200);
d.setSize(400,300);
// Add button to dialog
Button b1 = new Button("Hide Dialog");
b1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
d.dispose();
d = null;
}
});
d.add(b1);
// Show the dialog
d.setVisible (true);
}
});
f.add(b);
b = new Button("Resize Dialog");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (d != null)
{
d.setLocation(250,250);
d.setSize(600,400);
}
}
});
f.add(b);
// Show the frame
f.pack();
f.setVisible(true);
}
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Issues with setLocation/setSize and fvwm/fvwm2
If this is the problem with dialogs showing up iconified the second
time that they are displayed, it is not limited to fvwm i have it
under windowmaker as well and yes, it's still there. I think it
does not happen under the IBM jdk or 1.4 however.
-Original Message-
From: Greg Wolodkin [mailto:[EMAIL PROTECTED]]
Sent: February 7, 2002 8:30 AM
To: [EMAIL PROTECTED]
Subject: Issues with setLocation/setSize and fvwm/fvwm2
Anyone familiar with these two bugs?
http://developer.java.sun.com/developer/bugParade/bugs/4395578.html
http://developer.java.sun.com/developer/bugParade/bugs/4392053.html
I can still reproduce them in FCS-02a using fvwm and fvwm2. Below is
an example to illustrate. If I switch to say icewm then back to fvwm2,
things work OK. Are we getting it right for most window managers, but
not fvwm? Or is fvwm not giving us enough information to get it right?
We've tangled with this issue before in MATLAB, and have code to get
the insets right across the board. Before I dig into the VM and start
poking around I thought I'd ask here if anyone had any advice or pointers
into the code.
Thanks for any thoughts or info --
Greg
/* --- */
/*
* Initial dialog should be 400x300.
* Resized dialog should be 600x400.
* With Java2 and fvwm, its often wildly wrong
*/
import java.awt.*;
import java.awt.event.*;
public class DialogTest {
static Frame f;
static Dialog d;
public static void main(String[] args) {
// Create frame
f = new Frame("Dialog Test");
f.setLayout(new FlowLayout());
f.setLocation(100,100);
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
// Add buttons to frame
Button b = new Button("Show Dialog");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (d != null) return;
// Create dialog
d = new Dialog(f,"Test");
d.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
d.dispose();
d = null;
}
});
d.setLocation(200,200);
d.setSize(400,300);
// Add button to dialog
Button b1 = new Button("Hide Dialog");
b1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
d.dispose();
d = null;
}
});
d.add(b1);
// Show the dialog
d.setVisible (true);
}
});
f.add(b);
b = new Button("Resize Dialog");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (d != null)
{
d.setLocation(250,250);
d.setSize(600,400);
}
}
});
f.add(b);
// Show the frame
f.pack();
f.setVisible(true);
}
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
missing font
Running a Java app on my Linux system gives this message: Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] The fonts in JavaHelp window are very poor quality. I suppose this is the reason. How do find missing fonts and use them? Thanks, Stuart Wier -- Stuart Wier University Corporation for Atmospheric Research [EMAIL PROTECTED] P.O. Box 3000 http://www.unidata.ucar.edu/staff/wier Boulder, CO 80307 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: missing font
do you get a whole list of these errors? if so the solution could be to replace the font.properties file in ~jdk/jre/lib/ with the one at http://java.sun.com/j2se/1.3/font.properties hope this helps ...jordan. Stuart Wier wrote: >Running a Java app on my Linux system gives this message: > >Font specified in font.properties not found >[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] > >The fonts in JavaHelp window are very poor quality. I suppose >this is the reason. > >How do find missing fonts and use them? > >Thanks, > >Stuart Wier > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: missing font
On Thu, 2002-02-07 at 15:02, Stuart Wier wrote: > Running a Java app on my Linux system gives this message: > > Font specified in font.properties not found > [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] > > The fonts in JavaHelp window are very poor quality. I suppose > this is the reason. > > How do find missing fonts and use them? > > Thanks, > > Stuart Wier > Add these two files to your jre/lib/fonts folder The symbol.ttf is a true type font that can be grabbed from any Windows machine. fonts.dir is a list of all the fonts in the directory, you will have to overwrite the old one. -- Jesse Stockall | Tel: 1+ 613.599.2441 ext. 243 CRYPTOCard Corporation | Fax: 1+ 613.599.2442 Suite 304, 300 March Rd. | email: [EMAIL PROTECTED] Ottawa, ON, Canada K2K 2E2 | web: www.cryptocard.com - symbol.ttf Description: application/font-ttf 13 LucidaBrightDemiBold.ttf -b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-1 LucidaBrightDemiItalic.ttf -b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-1 LucidaBrightItalic.ttf -b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-1 LucidaBrightRegular.ttf -b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-1 LucidaSansDemiBold.ttf -b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-1 LucidaSansDemiOblique.ttf -b&h-lucidasans-bold-i-normal-sans-0-0-0-0-p-0-iso8859-1 LucidaSansOblique.ttf -b&h-lucidasans-medium-i-normal-sans-0-0-0-0-p-0-iso8859-1 LucidaSansRegular.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1 LucidaTypewriterBold.ttf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-1 LucidaTypewriterBoldOblique.ttf -b&h-lucidatypewriter-bold-i-normal-sans-0-0-0-0-m-0-iso8859-1 LucidaTypewriterOblique.ttf -b&h-lucidatypewriter-medium-i-normal-sans-0-0-0-0-m-0-iso8859-1 LucidaTypewriterRegular.ttf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-1 symbol.ttf -urw-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
