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
208
votes
17 answers

JavaFX Application Icon

Is it possible to change the application icon using JavaFX, or does it have to be done using Swing?
Sebb77
  • 2,431
  • 2
  • 17
  • 18
103
votes
8 answers

How to get stage from controller during initialization?

I want to handle stage events (i.e. hiding) from my controller class. So all I have to do is to add a listener like this: ((Stage) myPane.getScene().getWindow()).setOn*whatIwant*(...); But the problem is that initialization starts right after this…
Chechulin
  • 2,426
  • 7
  • 28
  • 35
69
votes
21 answers

JavaFX Location is not set error message

I have problem when trying to close current scene and open up another scene when menuItem is selected. My main stage is coded as below: public void start(Stage primaryStage) throws Exception { primaryStage.setTitle("Shop Management"); …
user2424370
44
votes
5 answers

How to set a JavaFX Stage/Frame to Maximized

I'm using JavaFX 2. I want my frame to open maximized but I'm not seeing a way. I searched a bit on the internet without success. For the stage I see setFullScreen() and setIconified() but I don't see anything like setMaximized().
Dorothy
  • 2,842
  • 10
  • 33
  • 46
41
votes
3 answers

What is SEDA (Staged Event Driven Architecture)?

SEDA: An Architecture for Well-Conditioned, Scalable Internet Services "SEDA is an acronym for staged event-driven architecture, and decomposes a complex, event-driven application into a set of stages connected by queues." I understand that it's an…
SEDA
  • 419
  • 1
  • 4
  • 3
37
votes
3 answers

JavaFX 2.0: Closing a stage (window)

I'm making a application in JavaFX 2.0. From my main window I am starting a new window with some settings. After I am done adjusting the settings I want to press a button like "Save changes". I would like this button to save the changes and close…
haakonlu
  • 949
  • 3
  • 13
  • 25
27
votes
13 answers

Allow user to resize an undecorated Stage

I am working on making a screen recorder in JavaFX and one utility that is mandatory in the screen recorder is to let the user define how much area to record. I managed to make an undecorated , semi-transparent Stage that can be dragged around to…
An SO User
  • 24,612
  • 35
  • 133
  • 221
26
votes
5 answers

Moving an undecorated stage in javafx 2

I've been trying to move an undecorated stage around the screen, by using the following mouse listeners: onPressed onReleased onDragged These events are from a rectangle. My idea is to move the undecorated window clicking on the rectangle and…
Antonio J.
  • 1,750
  • 3
  • 21
  • 33
24
votes
2 answers

Javafx open another fxml in the another window with button

Is it possible in javafx to open new stages (windows) from another fxml with a button? Thanks for the answers.
Sevi
  • 605
  • 1
  • 6
  • 13
24
votes
1 answer

When to use actors in libgdx? What are cons and pros?

I'm writing simple solar system simulator. This is my first libgdx project. I'm using a Stage and Actors for the main menu and is pretty handy especially touch events handling. But ... looking at the examples i see nobody uses actors in actual game…
Lord_JABA
  • 2,545
  • 7
  • 31
  • 58
19
votes
3 answers

Set Height and Width of Stage and Scene in javafx

I develop one javafx application. In my application there are two scenes and one stage. In application the height and width for both scenes are same or constant. so as per my research the height and width for scene remain constant which mention in…
Anvay
  • 1,923
  • 2
  • 18
  • 19
19
votes
2 answers

Center stage on parent stage

I am creating an application in JavaFx, In which I want to do that if any child stage is getting opened then it should be opened in center of parent stage. I am trying to do this using mystage.centerOnScreen() but it'll assign the child stage to…
Ronak Jain
  • 2,402
  • 2
  • 24
  • 38
17
votes
3 answers

How do I get the close event of a stage in JavaFX?

In JavaFX, how can I get the event if a user clicks the Close Button(X) (right most top cross) a stage? I want my application to print a debug message when the window is closed. (System.out.println("Application Close by click to Close…
java baba
  • 2,199
  • 13
  • 33
  • 45
14
votes
6 answers

How to Change the icon on the title bar of a stage in java fx 2.0 of my application

I have tried the stage.getIcons().add(new Image("attuncore.jpg")); But I don't know what is going wrong .. Please help. Thanks in advance.
Bipin Bhandari
  • 652
  • 4
  • 9
  • 23
13
votes
1 answer

Event when window/stage lost focus

How can I run a piece of code (or more exactly: close the stage) when the JavaFX stage lost it's focus? For example in Dropbox or Chrome: if you click the tray icon, a small window opens. If you click anywhere on the screen now, the window closes.…
momar
  • 171
  • 1
  • 7
1
2 3
42 43