On our Centos 6.0 box I am trying to have a translucent window with a simple message on it. The ideas is to stop the user entering any data with the program that my program is connected to is stopped. However when I try it with OpenJdk 6 the AWTUtilities code fails with an exception. If I try the code presented as example in this entry Java transparent window all I get is a purple window with a panel with curved corners and it isn't translucent. Any ideas how I would achieve this effect?
There's not much you can do. If you already have a JFrame/JDialog on the screen, you could use the glass pane instead
Related
I cannot figure this one out.
What I want to do is somehow disable the full-screen button on the right side of the title bar of the main application window, that seems to be a feature of Mountain Lion (10.8)+. It has two arrows pointing outwards diagonally.
There are related answers to this problem if the window is a dialog box, and an eclipse SWT-related solution here, but I need a solution to this problem if I have a single application primary-stage window, using javafx as the platform and netbeans 8 as the IDE.
I guess what I want is some way to access the cocoa API through javafx. Is this possible?
One way is to disable resizing completely:
stage.setResizable(false);
I just started to program in javafx, I installed the java 1.8 beta jdk and a beta build of eclipse. I followed the circle example. All goes well except when i resize the window that comes up the screen flickers for a bit, and then goes completely black. I then added a label to the scene, and weirdly enough the label still shoes when the screen goes black. I checked to make sure i have the latets video card drivers installed, so that does not seem te be the issue. I tried to search online, but no one seems to have this issue (only issues that their screen is black to begin with)
What could possibly be the issue that causes my window to go black once i resize it.
EDIT:
It seems that when i start to move the window around the circles appear for a split second and then disappear again
I was wondering how to make like one of those silent programs that run on your desktop but at the same time doesn't show a picture in your taskbar in the bottom?
This is kind of hard to explain since my experience is limited to making GUIs that show up in the taskbar and has the top bar with the minimize, maximize, and close buttons.
I want to make a program running that is something like this:
See those boxes? How would I create something like that with Java?
You can use translucent windows in Java: http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html
It will depend on the capabilities of the platform (that you can query for). You will probably need at least per-pixel transparency, if not translucency. No idea if they are supported on both Windows 7 and Mac, you have to try.
I want my Java program to know when a particular program has its window maximized or minimized or may be is running in exclusive full screen mode(most importantly when not). How to go about it?
If its not possible than only if i know that if any program is running in full screen exclusive mode or not!
Write a WindowListener - this will show you how.
i know its a little late to answer this but have a look at this
In Java Swing how do you get a Win32 window handle (hwnd) reference to a window?
once you have the window handle/reference you can perform operations on the window. Its definitely possible to do this since Spy++ that comes along with Visual Studio does this.
We are building a program for visual impaired people, the aim is to replace some features of the screen, like colors, shapes or else. Currently, we have a full-screen window, we grab a snapshot of the screen (through the robot java library) and we reproduce it to the full-screen window. When we try to take the next screenshot, obviously the image we got refers to the current full-screen window. We need to get the back of the full-screen window, after an extensive research we had no success on find a way to do so.
Do you know of a library or a way to achieve this, possibly (but not necessarily) in java?
If you are in Windows 7 you could
1) have Robot click the Rectangle in the lower right corner (to the right of the clock). This will minimize everything.
2) Then have Robot take the screenshot
3) have Robot click the Rectangle again, returning all app windows to previous state
4) have Robot take the other screenshot showing with apps open (if you like)
Robot can do this very fast, but it will interfere with any mouse movement that the user is doing.
You can achieve something similar in other versions of Windows by using right click on the task bar and then selecting "Show the Desktop" and "Show open Windows" to return to the original perspective.