Solved

Java application a float on top of an application written in another language

Posted on 1998-07-19
6
177 Views
Last Modified: 2010-04-16
JDK 1.1.4
Windows NT Client 4.0

  I have an smalltalk application that takes up the entire screen and a java toolbar application.

  I want the java toolbar application or java application to stay a float on top of the smalltalk application
without taking focus from the smalltalk application.

  How do I do this?

thanks
Anthony
0
Comment
Question by:ajam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:mjenkins
ID: 1227081
AT the current time, there is no way to do what you request in Java. Keeping on application "always-on-top" is a function of the application's interaction with the desktop (root window). The JDK has very poor support for this kind of interaction. I'm sorry.
0
 

Author Comment

by:ajam
ID: 1227082
How could I use the "C" language with Java using JNI?
0
 
LVL 3

Expert Comment

by:mjenkins
ID: 1227083
The JNI is fairly straight forward, but how to do what you request is dependent upon the platform on which you are deploying. Please be specific.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ajam
ID: 1227084
OS/2 Warp 3.0 and NT 4.0 are the platforms
0
 
LVL 3

Expert Comment

by:mjenkins
ID: 1227085
Sorry again. It's been too many years since I've looked at OS/2 and NT is not my thing. I'm sure someone in one of those forums can give you the appropriate native code and then you can wrap it up in JNI.
0
 
LVL 8

Accepted Solution

by:
diakov earned 200 total points
ID: 1227086
About he JNI go to:
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html
Making already existing window always on top is almost imposible. You have to specify this upon creation in the windows structures.
But you can export the window and GUI code to an external C++ shared .dll, written in MSVC, for example. And you can load it, show it, hide it, update it from your java application through JNI. Your java application will contain the logic, and only the interface will be C++.

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question