Java Window always on top.
Hi, My problem concerns both Java and Linux, and I'm of the opinion that this would be the ideal place to post the problem - " On linux, using java, how do I create a Window that will *always* remain on top of all other windows ?" I need to create a window that will always remain on top of all other windows. It should also be possible for me to add swing/awt components like JButton to this window. >From the JDC mailing lists, I came to know that it is NOT possible to write pure java code to accomplish the above task, and that it should be possible to write native code to accomplish the same. I am clueless, on how I should proceed. Can someone show me the way ? Thanks in advance. Nandakumar. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java Window always on top.
On Tue, Sep 05, 2000 at 06:24:56PM +0530, Gurumurthi, Nandakumar wrote: > > Hi, > > My problem concerns both Java and Linux, and I'm of the opinion that this would > be the ideal place to post the problem - " On linux, using java, how do I create > a Window that will *always* remain on top of all other windows ?" I need to > create a window that will always remain on top of all other windows. It should > also be possible for me to add swing/awt components like JButton to this window. > > > >From the JDC mailing lists, I came to know that it is NOT possible to write pure > java code to accomplish the above task, and that it should be possible to write > native code to accomplish the same. > > I am clueless, on how I should proceed. Can someone show me the way ? I don't have code handy, but here's an outline of how you could solve the problem in some JNI code... You'll need to write some native code that knows how to deal with the X Window System, and access it through a class with one or more methods declared "native". In that code, you'll need to: 1) Open a connection to the X server and find your top-level window. Under JDK1.3, there are ways to directly get handles to objects in the X Window System; under earlier JDKs, you'll need to search the window hierarchy for your window. 2) Write a loop, running in its own thread, to listen for ConfigureNotify events on your window. When you get an event indicating that your window is not on top, issue an XRaiseWindow request for your window. Unless you have experience programming for the X Window System, turning this into code will take you up a steep learning curve... but that's basically what needs to be done. Nathan Meyers [EMAIL PROTECTED] > > Thanks in advance. > Nandakumar. > > > -- > 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]
jdk1.2.2 for Suse6.1 Cluster?
hello, the installed jdk1.2 distro seems to have problems managing correctly threads (at least my app incurs non-logical blocking) whilst the version i use on my laptop (latest 1.2.2 on debian) seems to run fine (but then it has no multiple procs... nor clustering softs) nevertheless all jdk packages i found are compiled with the wrong glibc to be able to run on a Suse6.1, that is running (i suspect, how do you find out?) with a glibc2.0 . I am not the admin of that cluster, and i suspect that an upgrade wouldn't be that easy, at least i have never made this to a cluster :D so telling me to change the distro, or the distro version isn't helping me. ;) Anybody build this thing for this system? and if yes where could i download it? -- ciao bboett == [EMAIL PROTECTED] http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett === the total amount of intelligence on earth is constant. human population is growing -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java Window always on top.
--On 09/05/00 16:45:49 +0200 Anders LindbXck <[EMAIL PROTECTED]> wrote: > Gurumurthi, Nandakumar skrev: >> My problem concerns both Java and Linux, and I'm of the opinion that >> this would be the ideal place to post the problem - " On linux, using >> java, how do I create a Window that will *always* remain on top of all >> other windows ?" I need to create a window that will always remain on >> top of all other windows. It should also be possible for me to add >> swing/awt components like JButton to this window. > From a GUI design point your questions is wrong! > You really do not want to do that. > > The questions should be - why do they want to have a window > that never should be obscured! > > Personally I would never use a program that insists of being on top. I know, things like the windows task bar & system tray, the Apple menu bar, icon managers, CDE's dashboard, KDE's task bars, and the GNOME panel are scourges to user interface design! ;-) Seriously, it can make sense, it just depends on what you're doing. --Chris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdk1.2.2 for Suse6.1 Cluster?
Bruno Boettcher wrote: > > hello, > > the installed jdk1.2 distro seems to have problems managing correctly > threads (at least my app incurs non-logical blocking) whilst the version > i use on my laptop (latest 1.2.2 on debian) seems to run fine (but then > it has no multiple procs... nor clustering softs) > > nevertheless all jdk packages i found are compiled with the wrong glibc > to be able to run on a Suse6.1, that is running (i suspect, how do you > find out?) with a glibc2.0 . > > I am not the admin of that cluster, and i suspect that an upgrade > wouldn't be that easy, at least i have never made this to a cluster :D > so telling me to change the distro, or the distro version isn't helping > me. ;) > > Anybody build this thing for this system? and if yes where could i > download it? > I think you just need to add some libraries to your system(s) which will be running the SDK. >From the README file in jdk1.2.2's install directory: -- System Requirements -- The Java 2 SDK software is available on four platforms: [snip] * Linux/Intel Version This version of the Java 2 SDK is supported on Intel Pentium platform running the Linux kernel v 2.2.5 and glibc v 2.1, 32 megabytes RAM minimum. Recommended 48 megabytes of RAM, 16-bit color mode, KDE and KWM window managers. -- Joi EllisSoftware Engineer Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED] No matter what we think of Linux versus FreeBSD, etc., the one thing I really like about Linux is that it has Microsoft worried. Anything that kicks a monopoly in the pants has got to be good for something. - Chris Johnson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]