Re: full screen frames
Håkan Thörngren wrote: > >>>>> "Jason" == Jason Gilbert <[EMAIL PROTECTED]> writes: > > Jason> Håkan Thörngren wrote: > >> How can I get full screen frames? > > Jason> I'm making the assumption that you turned of the frame > Jason> decorations in the window manager (this may not be the case). > Jason> If you are using java.awt.Frame for your base window you might > Jason> try using java.awt.Window instead. The only difference (I > Jason> think) being the the Window class does not contain a border. > Jason> Whoops, I just noticed that you aren't using a window manager. > Jason> You might try it anyway. > > I use a JFrame and given your hint took a look at JWindow which > was exactly what I needed. It opens a window without decorations. > The only problem is that it will break down the focus handling. > JTextAreas no longer receive a cursor, focus is lost from components > in unpredictable ways. > > Just my personal opionin, but I think the focus mechanism in Java > (at least under Motif) is somewhat broken. What bothers me most is > that I have no real control over the focus myself. I can only advice > it and it usually ignores me. It is quite hard to work around bugs > in the focus handling since it is an inner class in java.awt.Window... :-( > > /Håkan Hi! Under Linux - JWindows or Windows with TextFields or TextAreas will not be work yet! They don't get the focus and all inputs appear in the terminal... See Blackdown-Bug ID # 91 ... But this is a JDC-Problem: JDC Bug # 4121501 & # 4094883. CU Kalimero
Re: full screen frames
Håkan Thörngren wrote: > >>>>> "Jason" == Jason Gilbert <[EMAIL PROTECTED]> writes: > > Jason> Håkan Thörngren wrote: > >> How can I get full screen frames? > > Jason> I'm making the assumption that you turned of the frame > Jason> decorations in the window manager (this may not be the case). > Jason> If you are using java.awt.Frame for your base window you might > Jason> try using java.awt.Window instead. The only difference (I > Jason> think) being the the Window class does not contain a border. > Jason> Whoops, I just noticed that you aren't using a window manager. > Jason> You might try it anyway. > > I use a JFrame and given your hint took a look at JWindow which > was exactly what I needed. It opens a window without decorations. > The only problem is that it will break down the focus handling. > JTextAreas no longer receive a cursor, focus is lost from components > in unpredictable ways. > > Just my personal opionin, but I think the focus mechanism in Java > (at least under Motif) is somewhat broken. What bothers me most is > that I have no real control over the focus myself. I can only advice > it and it usually ignores me. It is quite hard to work around bugs > in the focus handling since it is an inner class in java.awt.Window... :-( > > /Håkan Hi! Under Linux - JWindows or Windows with TextFields or TextAreas will not be work yet! They don't get the focus and all inputs appear in the terminal... See Blackdown-Bug ID # 91 ... But this is a JDC-Problem: JDC Bug # 4121501 & # 4094883. CU Kalimero
Re: full screen frames
Håkan Thörngren wrote: > >>>>> "Jason" == Jason Gilbert <[EMAIL PROTECTED]> writes: > > Jason> Håkan Thörngren wrote: > >> How can I get full screen frames? > > Jason> I'm making the assumption that you turned of the frame > Jason> decorations in the window manager (this may not be the case). > Jason> If you are using java.awt.Frame for your base window you might > Jason> try using java.awt.Window instead. The only difference (I > Jason> think) being the the Window class does not contain a border. > Jason> Whoops, I just noticed that you aren't using a window manager. > Jason> You might try it anyway. > > I use a JFrame and given your hint took a look at JWindow which > was exactly what I needed. It opens a window without decorations. > The only problem is that it will break down the focus handling. > JTextAreas no longer receive a cursor, focus is lost from components > in unpredictable ways. > > Just my personal opionin, but I think the focus mechanism in Java > (at least under Motif) is somewhat broken. What bothers me most is > that I have no real control over the focus myself. I can only advice > it and it usually ignores me. It is quite hard to work around bugs > in the focus handling since it is an inner class in java.awt.Window... :-( > > /Håkan Hi! Under Linux - JWindows or Windows with TextFields or TextAreas will not be work yet! They don't get the focus and all inputs appear in the terminal... See Blackdown-Bug ID # 91 ... But this is a JDC-Problem: JDC Bug # 4121501 & # 4094883. CU Kalimero
Re: java.lang.UnsatisfiedLinkError: readImage
Hi! This is no bug-from jdk-blackdown, do you use SuSE 5.x??? If so see blackdown-bug-report: # 110 - Done... CU Kalimero. Michael Grundel wrote: > Greetings! > > When I try to load a jpeg image with > Image img = Toolkit.getDefaultToolkit().getImage(fileName); > I get the following Error: > > java.lang.UnsatisfiedLinkError: readImage > at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:137) > at > sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:265) > at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:151) > at sun.awt.image.ImageFetcher.run(ImageFetcher.java:127) > > This does not happen on Solaris and Win32, so I think it must be a problem > with the linux JDK or my setup (but I've tried it on 3 linux-machines). > GIF images work perfectly. > > I am running Suse 5.2 (Kernel 2.0.34), jdk 1.1.6v2 libc. > Everything else concering java is working fine. > The same error occurs with the jdk1.1.3. > > Can someone help me? > > Regards, > Michael > > -- > Email: [EMAIL PROTECTED] > PGP key available
Re: JFrame
Rob Nugent wrote: > Try a Window instead of a Frame. > > Anguel Anguelov wrote: > > > Hi > > > > how kan i show one Frame without border? > Attention! Windows and JWindows under Linux and also Solaris have a bug! -> see bug # 91 at the blackdown's bug-page and also bug # 4121501 and # 4094957 at the sun's developer connection. This bug is a sun - jdk bug and you're not able to use textcomponents in a Window because the input will be displayed in the console and not in the textcomponent. You also have some focus problems with Windows and JWindows. I hope this bug will be fixed soon or fixed in the 1.2 release... Hope this could help Wolfgang
Re: No events from KeyListener on a JWindow (unlike Win32)
> I am using the Swing JWindow class which is a kind of java.awt.Window > and therefore has not titlebar. Under Linux the Windows and JWindows does not allow children to get focus. This is also a Solaris problem... If you use TextComponents or JTextComponents the input appears on the console and not in the TextField, this is the same problem! See my bug-request at Blackdown's bug-parade #91 But this is a SUN-bug: Look at Sun-Developer-Connection -> Bug-Parade #4121501 and #4094957! I hope this bug will be fixed soon (Java 2), i found this bug 6 month ago( :((( ) and nothing happended I tried it with JFrames a Window would be better in this case... Hope I could help you Kalimero
JDK-TextField-Problem
I'd placed a TextField or a TextAres (also Swing-Components) into a Window (or JWindow), all inputs appears in the terminal an not in the TextFields. TextFields with Frames or Dialogs work without any problems... Any solutions??? Thx. Wolfgang
TextField - Problem with Windows...
Hi!
If I run this small program under Linux (jdk 1.1.5
v5), all inputs appear on the terminal an not in the TextField, if I use
a Frame or a Dialog, the input is correct displayed in the TextField!
But the program is running correct under Windows
NT & 95...
Is there a solution for this problem?
Thx
Wolfgang
import com.sun.java.swing.*;
import java.awt.*;
public class Test {
public static void main (String
args[]) {
JWindow
w = new JWindow();
w.getContentPane().setLayout(null);
w.setBounds(0,
0, 500, 300);
JTextField
txt = new JTextField();
txt.setBounds(20,20,200,25);
w.getContentPane().add(txt);
w.show();
}
}
