Questions tagged [stage]

In case of ActionScript terminology, stage is used as a parent Display Object of all assets like images, text, videos, swf, etc. those are placed on this stage. These assets are not displayed until they are added to stage.

633 questions
12
votes
2 answers

JavaFX: Best practice for navigating between UI screens

I want to change UI screens from login.fxml to home.fxml. Should I change the Stage or the Scene? I'm not sure which is the best practice? Also, can I use a lambda expression for the handler in the controller?
user4016255
12
votes
3 answers

how to make transparent scene and stage in javafx?

I want to have transparent progressindicator, which is indefinite. here is the code, it shows grey background state/scene. i wanted fully transparent. I tried following code, but it shows background stage which is not transparent. package…
Sumant
  • 496
  • 1
  • 6
  • 20
10
votes
1 answer

JavaFX Single Instance Application

Trying to make it so when the user "closes" the program clicking all the exit buttons so there is no more tray icon. I called Platform.setImplicitExit(false); so the program still runs in backround. I am trying to learn how to make it so when the…
user1781523
10
votes
3 answers

How to close a stage after a certain amount of time JavaFX

I'm currently working with two controller classes. In Controller1 it creates a new stage that opens on top of the main one. Stage stage = new Stage(); Parent root = FXMLLoader.load(getClass().getResource("Controller2.fxml")); Scene scene = new…
Doja
  • 135
  • 1
  • 2
  • 10
9
votes
1 answer

Login Application with 1 stage and multiple scene in JavaFX

I am doing a timeline project. I have successfully created a login system and menus for everything, but when I press the buttons I have done so it will open a new window(with stage, scenes). I have read that it isn't the best approach. The best way…
jabbeboy
  • 289
  • 2
  • 5
  • 14
8
votes
1 answer

stage 0 vs stage 4 TC39 process javascript

What is the difference between stage 0 and stage 4 phase of JS changes with respect to TC39 Process of JS implementation. Which stage code is recommended for writing production code. P.S: I can use babel preprocessor.
Jagajit Prusty
  • 2,070
  • 2
  • 21
  • 39
8
votes
3 answers

Can you write two different Java FX scenes as two separate classes?

I'm a beginning Java programmer, finishing up the "Java 101" class at my local university. I'm also pushing myself to learn some extra topics on the side, including Java FX. I've worked through the Java FX tutorials on Oracle's website, plus sat…
Pete
  • 1,511
  • 2
  • 26
  • 49
8
votes
2 answers

How to align table in scrollPane top?

I' am making achievements screen in my libgdx game. I want to align my table in scrollPane to top, now it is centred vertically and horizontally and I don't know why. Using .top() method when I've tried to create new row didn't worked. stage =…
peterSweter
  • 633
  • 6
  • 23
8
votes
4 answers

How to draw a bitmapfont on a stage in libgdx?

This is my current render method on my level in my Libgdx game. I am trying to draw a BitmapFont on my level's top right corner but all I'm getting is a bunch of white boxes. @Override public void render( float delta ) { …
Peter Poliwoda
  • 563
  • 2
  • 7
  • 19
7
votes
5 answers

A javaFX Stage could be both StageStyle.UTILITY and StageStyle.TRANSPARENT?

I mean that when using a stage with stageStyle.UTILITY, I don't want to show the "solid white background " but a transparent background. I need a stage doesn't shown on the windows' task bar below(stageStyle.UTILITY can satisfy), and I need a…
Keon Wang
  • 365
  • 1
  • 3
  • 15
7
votes
3 answers

how can one detect a finished resizing operation in JavaFX?

I have a stage, a scene and a WebView node. When I expand the window to a larger size - things get pretty sluggish due to WebView. What I want to do is fill the new space for WebView only when the resizing of the window has been finished (this is me…
XXL
  • 1,224
  • 4
  • 12
  • 25
6
votes
3 answers

AIR - set size of NativeWindow to include system chrome

How do you find out the size of the system chrome so that I can specify the window size to achieve the stage size I want? If my main window is set at 800 x 600 (stage), and I create a second window as below, it will be smaller. public function…
davivid
  • 5,910
  • 11
  • 42
  • 71
6
votes
0 answers

How do I check whether Stage Manager is enabled?

In macOS 13 Ventura How do I check if Stage Manager is enabled in my code? And I want to turn the Stage Manager on or off with code.
EggsBlue
  • 79
  • 3
6
votes
1 answer

JavaFX : How to manage the z-index of stages

Is there any way to manage the z-index ordering of multiple stages (independent to each other). Something like, say there are three Stages A, B & C. StageA should stay always at back. StageB should be in middle and StageC should be always on top.…
Sai Dandem
  • 8,229
  • 11
  • 26
6
votes
1 answer

JavaFX 8: Stage insets (window decoration thickness)?

How can i determine the stage/window insets in JavaFX? In Swing i could simple write: JFrame frame = new JFrame(); Insets insets = frame.getInsets(); What would be the equivalent in JavaFX to get the size of the border and the titlebar of the…
tobain
  • 646
  • 8
  • 13
1
2
3
42 43