I just want to know if it is possible in Java to create a frame which is located between the desktop background and the icons on it.
Basically I try to create an "animated desktop background" in Java using Windows 7.
I found some tutorials on how to create a fully transparent window, but the problem remaining is, that this window is still in front of the desktop icons, so its more like a "desktop foreground".
Is there a way to make this foreground to a background?
Are there other ways to achieve this in "pure" Java?
But I guess the only way realizing it with Java is native code via JNI/JNA.
Hopefully you can tell me that I'm wrong ;)
You cannot do it using Swing/AWT. Since the windows api is in c++, it is possible to call some of the functions using JNI.
Related
I have a java desktop application made by JAVAFX. I have been able to make it executable and to install it inside my machine, but by default I have the icon of the coffee cup.
I would like to change the icon if it is possible to change it.
I think it depends upon the OS you are using it. There are some wrappers like JSmooth or launch4j. But generally...it's a manual work - change the icon like on any other app.
Good luck :)
I have made a light weight java web-server serving html files and static content (made with pure java library nanohttpd), i have successfully made a javaFX launcher window that has a single button, clicking button simply runs the server in the background and opens the localhost URL in Android/PC browser (I was unsuccessful in making an IOS version using javaFX)
I am thinking of using libGDX as "launcher window" because of IOS support and access to mobile specific hardware like SMS/GPS which javaFX don't have.
I am targeting IOS/Android/PC, I'd like to ask libGDX developers how possible is this given my target platforms?
Yes you can
There's a catch though, you may have to build the UI the game dev way
I've made a game or two using it and had rather steep learning curve in the beginning to get a hold on to how it worked. For example you'll have to provide the images for button, background and also, the pressed view of the button... like that. But your app is not a game. So you won't have to worry that much.
Once you learned how to place them in the screen successfully, there is not much to worry about because the API provides everything you need to carry on from there.
Also I found enough resources/tutorials online enough to make a game from ground up. So you'll definitely can.
And there's very little to worry about your multi-platform problem.
I have seen a few things on this website about converting java code to android. However, I do not want to re write my code unless absolutely necessary. I have always wanted to release a game to the google play store, and have been working hard to do so in the past couple of weeks. I decided to code the game in java, thinking that I could convert it to work on the Android operating system when finished. However, I am now at the point where I am ready to convert the game, and I am having lots of trouble. My game requires java's "paintComponent" and Graphicsd2D. My question: is there any possible way to use java's Graphics in android? I use lots of things with this class, such as resizing images
There is No direct way to convert Java (Swing/AWT) GUI into Android GUI. Since Java GUI is heavier for mobile applicaiton.
However you just start converting your java GUI components into Android XML view one by one. That is the only way.
If working on Web Application, You can use this WebSwing. It will allows to run any swing application inside your web browser using only pure HTML5. It is Open Source.
I have a Swing Application that currently has the feature setAlwaysOnTop(true); and is docked to the top of the screen.
Now i can't find a way for other windows (Browser, IDE) to maximize in respect of my application.
To make myself clearer here is a picture:
As you see, currently the maximized window is behind my Application.
I don't want other applications to expand behind my application; just like maximizing a browser won't expand it past the Windows taskbar.
How can i realize the desired behaviour with JAVA?
If not possible directly with/in Java, are there other ways to achieve this?
N.B.: The App only has to work on Windows 7.
I guess the reason for my lack of search results was my inability to describe this behaviour. Any hints would be appreciated.
Thank you for your time.
It is called an Application Desktop Toolbar
The system prevents other applications from using the desktop area used by an appbar
Which is very Windows-specific, making it difficult in pure Java.
Perhaps jdeskbar could be an option if you really have to do this in Java and not a more "Windowsy" language
EDIT: According to the jDeskBar project wiki, the current release is broken. Maybe it can be picked apart?
I have some java code that I use on a windows machine that runs as a service and has a tray icon that I want to port to Mac OS X. From what I can tell there is no good way to make a menu bar icon using java, so I want to basically wrap my java code with objective-c so I can have a nice menu bar icon and still interact with the java code as I am able to when running the code on my windows box. Is there a good way to do this?
My java code makes web requests every so often so the main functionality I'm looking for is to start/stop the web client, as well as receive updates from the java code on the status of the web requests (more or less push notifications).
Thanks for your help everyone!
If all you're trying to do is get your application's icon displayed in the Dock & the Finder, you don't need to write an objective-C wrapper; all you need to do is bundle the Java code up in with the icons in an OS X "application bundle". See Apple's Java Deployment Guide
You might also want to look into the com.apple.eawt package (see questions/1319805/java-os-x-dock-menu), which provides some features to allow a Java app to appear more like a native OS X application to the user (for example, supporting drag-and-dropping a file to the application icon).