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

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.

Related

Android app running in the background which can interact and edit pictures on the main user screen

I am working on an android app as explained by the title.
I have figured out the background part but i have found no information regarding the second part.
The main goal is to be able to change the facial features (in my case, the eyes) of any pictures that are projected in the main screen.
I am familiar with facial feature swapping given a root image from which the facial features will be extracted and then swapped to another inputed image, but i am searching for a way to swap those features from the root image to any face that appears in the main screen.
I am still in the theory phase regarding the second part.
I have considered manipulating cached photos but this wont be a complete solution.
I have considered changing the features of the faces that get detected in the main screen by drawing the features from the root image, but it wont do because it would be a simple drawing on the screen without affecting the underlying image.
I have no other ideas. I cant think of any way. It seems that it is impossible?
Any ideas?
Thanks in advance.

Netbeans screen artifacting

I have noticed recently that in net beans sometimes lines are left on the screen and aren't cleaned up. I cant get a screen shot for some reason so an image from my phone will have to do:
Is there a setting I need to change, or something? or is it a problem with my monitor?
Nope, just minimalize/resize window to redraw

Colored buttons don't show up when jGRASP is run on mac?

i'm not sure if I'm allowed to ask questions not explicitly regarding code on StackOverflow, but I currently have a java program involving colored buttons. At school, when I run it on a computer that isn't a Mac, jGRASP shows the colors and runs perfectly fine, but on my personal Macbook, the buttons are white and turn grey when clicked, regardless of what I set the color to. So I know it can't be my code, unless there's a special method especially for Macs, which is doubtful. Is this a problem with all Macs? I'm using the
array[x].setForeground(Color.blue);
method to set everything. Any help would be greatly appreciated!
This may depend on the Look&Feel and Java version. In general, a component doesn't have to pay any attention to its foreground color.

Applet component location on screen changes when running in eclipse and in a browser

I am moving components around and I am setting their locations to that of other components, but its not exact. So what I did was move the component a little to the left and a little up to fix that, but when I run it in the browser, it is off even more. What can I do about it and why isnt the location exact?
Edit: Fixed it by calculating the differences in the locations of the components

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