How to manage multiple splashscreens in SWT, Java [closed] - java

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have some splashscreens in my SWT written application.
Some of them provide feedback, some provide usercontrolls.
I need to display those splashscreens in a different order.
E.g.:
Logo splashscreen
Connecting... screen
Login-usercontrols screen
Logging in... screen
etc.
Question:
What is the usual way to manage the screens.
Is there a design pattern, which allows to effectively show a new screen / hide all previous screens?

If you want just one Window visible at a time, SWTs StackLayout might be the right choice for you. Basically, all the screens are within one window, and the StackLayout shows just one of them.

Related

Libgdx Scrollable Level Screen Implementation [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
I am creating Level Screen for my android app. This screen shows a infinite scrollable curvy thread. there are buttons kept on this thread. Each button shows a particular level of game. Each button is clickable which will start the particular level of game. The bottom level is 1 and top most level is 1000. At a time there are 6 levels(buttons) shown on screen. Other buttons should be dynamically created while scrolling the screen so that unnecessary resources are not occupying memory. I am not sure of how to implement this dynamic scrolling. I didn't find any useful libgdx reference regarding this.
Help with any Suggestion to implement this level screen.
I am able to create static screen, but unable to create level buttons while scrolling.

browsing through big amount of images with slider approach [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have 1000 images, each of them signifies a state at the time step. I would like to create an application that allows us to use a slider move through time steps, eventually being able also to see some information about what is going on in the image (like region size ect). I created the algorithm which creates generates and analyzes images in Python and I guess I will try to create UI in Java. Any recommendations on how to approach it? ( I am not very proficient in Java but I understand the basics). I attached the general view of what I want it to be below:
Try Tkinter, it is a very easy to use UI creator in python.
https://docs.python.org/3/library/tkinter.html

JavaFX Glass shatter / crack and break [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Does anyone have any suggestions as to how I can go about creating an Effect for a JavaFX node that can simulate glass shattering and then (potentially) breaking? if the breaking is more difficult, I can skip that part. Basically I want to layer this pane over an image and then make it look like its a picture frame that then shatters. If it can then break into pieces (after some configurable delay).. that would be great as well!
I've looked everywhere but can't seem to find info on simulating the glass shatter effect in JavaFX.
Thanks!
For a simple solution I'd go with a Path that randomly extends and change the style of the path during time.
More sophisticated code could use a Canvas and paint the shattering on it. Daniel Shiffman with his Nature of Code book may be a base for you with the creation of the shatter effect.

Clicking from one frame to another while reading textfields [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am quite new to Java, having the following question:
I want my Swing Applications users to put in various textfields in some frames.
That should happen like this:
When the application is started, a frame opens with some textfields and a submit button.
The submit button sends the textfields data to the main method and closes the active frame.
Then a new frame opens with some more textfields and a submit button and so on.
How can I implement this in Java?
I understood that building multiple frames is not best practice, but what is the alternative?
Thanks for your help!
How can I implement this in Java? I understood that building multiple
frames is not best practice, but what is the alternative?
IMO the best alternative in your case is to have only a window (probably a JFrame), and using a CardLayout to switch between (probably) panels when an action happens. Also read The Use of Multiple JFrames: Good or Bad Practice?
Besides official tutorials that have examples, this answer provide a commented example how to use CardLayout

Does any one know how to make alternative to Google recently start page in java swing? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Has anyone idea how to make recently Google Search page in java swing?
Please take a look at http://www.google.com.
Nice effect :-)
If you wanted to do this in Swing, I would take the following approach:
Render the original screen to an offscreen BufferedImage
Render the new screen to an offcreen BufferedImage
Do an animated transition between the two by drawing the new screen then painting over it with the correct portions of the old screen, twisted and rotated to the right location (you can use the Java2D AffineTransformation for the rotating/twisting)
The tricky bit will be getting the position to change over time in a way that looks visually appealing and doesn't cause any nasty visual artefacts. This will take some maths and quite a bit of trial and error!

Categories

Resources