javafx screen flickers then goes black - java

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

Related

Eclipse runs javafx program with weird settings / weird screen / or misalignment

On two different laptops, when I run my javafx application on eclipse-- the background and objects that is loaded onto the screen is not where they are suppose to be positioned. For example, the ImageView background is supposed to be centered and fill the screen, but instead it appears immediately to the bottom-right. Only when I resize the screen (doesn't matter how big) but the background and objects automatically reposition themselves where they should be. I believe a possible cause is my eclipse settings, except they're all defaulted. I don't think it's something wrong with my code, because when I run the same code, the same program on a different desktop and on another laptop, everything appears as it should. I tried changing my screen resolution but that has no effect. I also tried changing using css to set and position my background but same results.
Has anyone had a similar problem or have any suggestions to fix this?
Please help! Thank you.

Misaligned Screen in JCEF (Java Chromium Embedded Framework) Application

I have a Java 7 application which is using Java Chromium Embedded Framework to draw html/css into two windows it launches. This works quite well in 4 of 5 PCs that I've run it on. In one case there are alignment issues with the rendered html. Successful runs include Windows 7/8/8.1. Unsuccessful run is 8.1 on an HP TouchSmart Envy, straight out of the box. Perhaps the only distinguishable differences are that this PC is new and that it has a touch screen.
As you can see, the content is shifted upward while being additionally clipped at the right and bottom sides. This is true of both windows that the application opens. What's even stranger is that mouse events (such as the :hover effects on the buttons and click events) are received in their correct position -- clicking about two inches below "Start Presentation" fires the button's click event.
Frankly, I have no idea what to try next on this. I've tried installing and uninstalling graphics-related software, adjusting the screen resolution, adding and removing the second screen, restarting the pc, and updating the onboard graphics driver.
As I have no idea what else could be causing this inconsistency, any advice in troubleshooting this issue would be fantastic.
As it turns out, this appeared to be related to the way JCEF interacts with system drivers. Going through Windows Update for the first time, restarting, and returning to the device's native resolution solved this issue.

What to do if isTranslucencyCapable is not supported

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

Background of Eclipse's method list description panel is black

I'm running Ubuntu 11.04 on my system and am using OpenJDK. When I installed the Java Eclipse IDE, everything seemed to work fine at first until I started a project. When the method/variable list appears, it looks fine except that the panel giving you information on the method has a black background with white text. I want to change that back to black text on white, but my search through the preferences turned up nothing.
That is a setting that you have to change in Gnome. I don't have Ubuntu installed currently, so the solution is from my memory, and maybe the menu entries are named a bit differently:
Go to System Settings -> Appearance. Then you have somewhere a button to change colors, and there is somewhere an entry for tooltips, which is black. Change that and the color setting for the font.

JcomboBox has no border?

When my program starts up, the comboboxes (there are 2 that are having this problem) do show up. However, when I click on the arrow one item (there should be 7 items showing) shows up and there is no border around the list. If I drag my mouse over the area all the other items appear, but still no border.
This is only happening at our warehouse which is about 400 yards from the main office. We have fiber going over there and are on the same LAN. I'm not sure if this is a network issue or a java issue.
Any help is very much appreciated.
Chris
I remotely logged into the computer this morning to try this out for myself, with different versions of the package (one that was built using 1.4.1_18 and one with 1.4.1_15). Turns out that if I minimized the program and then maximized it, everything was fine (using both versions).
I commented out setExtendedState(getExtendedState() | MAXIMIZED_BOTH) which comes after everything is initialized for the frame. Rebuilt, restarted and the borders are there along with all the items, so it now works perfectly.
Does anyone know why this would be causing a problem?

Categories