Solved

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

Posted on 1998-07-19
6
176 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Technology Partners: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Opening PDF on button click and fill new document 2 54
jsp insert to database example 2 64
restrict decimal places for double datatype 10 34
Java array sort 10 35
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 …
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

726 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