Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Are there any tools for UI screen design for mobile devices or
Is most of the design done in a generic Image/DTP editing/creating software like MS Windows Paint or the likes?
I found a few tools for creating sprite image filmstrips, like MotionWelder,
However I haven't found any tools for UI screen design and am generally working in a non-structured manner.
I have tested out NetBeans Visual Builder its nice for component based layout, however I don't think it supports a more open user based component and pixel based view of the screen.
I haven't tried NetBeans'Game Builder either maybe I should have a look there?
What would be a more efficient way of Screen design and then say export the resulting screens to your app?
From my experience, a Canvas based layout, with the UI designed as screenshots by designers using Photoshop and then they providing image assets has worked well. I personally like the flexibility and control this provides.
LWUIT is a nice user interface toolkit for J2ME. It allows you to create interfaces in a similar manner to Swing, e.g. using BorderLayouts etc.
When I wrote an application for a mobile device I basically created a background image in paint an imported it into the application. I then used the Canvas class to draw on top of that image to add the additional bits and pieces I needed (such as buttons and text etc.)
Related
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 1 year ago.
Improve this question
Can we use material UI in java?
Basically, I am making a calculator in eclipse using swing and awt and I want to try materialUI, so I want to use the material button in it.
Is it possible?
Yes. You could use Material UI with Java. Implement your calculator as a webapp and use Material UI components to implement the calculator (web) UI to run in the user's web browser.
But it doesn't make sense to use Material UI with Swing / AWT.
Material UI is a Javascript component library that runs in the user's web browser.
Swing / AWT are for implementing user interfaces on the user's desktop.
(Trying to use Material UI with Swing / AWT would be like trying to put wheels on a fish.)
There is nothing preventing you from designing and implementing cool buttons (e.g. buttons that look like Material buttons) in Java using Swing / AWT as the foundation. It would "just" be a Java coding exercise; see Andrew Thompson's answer for some a starting point.
But my advice: don't bother. It would be a waste of effort ... IMO.
.. looks cool ..
If it is purely about the look of Swing GUI controls, that could be implemented using a custom look-and-feel. See the Modifying the Look and Feel lesson in the tutorial for details. Note there are also many 3rd party look and feel implementations that might come close to what you think is 'cool'.
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 3 years ago.
Improve this question
I want to include sth like a logo or a header/banner into my window. I possibly want to avoid using png/jpg Images, because this could look weird when my application runs on high res displays. So i created my banner as an svg. How can i insert this into my window? I know that it isn't possible to include it with the ImageView class of javafx, but i heard about the possibility to compose an svgpath-group in fxml/css and then load it via fxmlloader. But how do i do this whith all things like color gradients, ...? How do i have to compose my java/fxml document to show a scalable banner?
There are various options do do this. I gave you a hint to the first one already in your previous question. (Use e(fx)clipse and convert the SVG to an FXML file.) This also handles all the color and gradient issues.
Another option is to use this little library https://github.com/codecentric/javafxsvg which makes it possible to treat any SVG image in the same way as a regular JavaFX image. It is rendered internally and can thus be adapted to any size or resolution change.
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 would appreciate it a lot if someone enlightened me on what is the "proper" way to build a java application which utilizes the Swing. How you navigate through the views of the program?
To further elaborate on what I have in mind:
I need a menubar at the top of my Frame and when the user selects a menu item the application should present him the right view. These "views", are they panels? How do you create such an application? I have tried with panels and show, hide functions but I am not pleased with the result. Is this the proper way to build such an application? Looking forward to your answers guys!
Thanks a lot in advance!
If it is a simple application, JFrame and JMenuBar is enough. If it is built out of a number of screens, as your question suggests, then CardLayout can be useful to manage which screen is showing. Building those out of individual JPanels is a good idea.
There are various GUI builders built into Java IDEs which can help you design those panels and wire them up to your code that implements the logic of the application.
How the pieces of the application communicate with each other is up to you; the typical pattern is to have a "model" class for each one which populates the models of the individual components.
If it is a very complex application, you may want to use a framework which takes care of the plumbing of a desktop application, such as the NetBeans Platform or other similar frameworks.
You can use a JFrame.On the top of it, have a menu bar, you can add items to it.You can also add sub menu to items.You can perform action on its event.Netbeans provide a easy way, but it is not recommended from coding point of view.
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 new on 2D Game development in android . I Heard about AndEngine, but i dont know how to use this . Please Help me
Help Will be Appriciated
I only used one of them and below its specialities(supports android) as I remember. Others which I dont know about:
Jogre -->I dont know if this supports Android, but trying does not hurt
env3D --> Supports android.
jake2 -->I dont know if this supports Android
jpct ---> Supports for android.
LWJGL --->a good base
You can access the Jmonkey Engine 3.0 to add it to your Eclipse projects or to just create scenes from ground up with its sdk.
You can do many things easily with its already-invented classes. You can apply many types of physics(event driven or time step), raytracing, building a 3D world with 3D object static or dynamically alterable. You can build custom shapes, even importing from manyfile types is made easy. You just need some time to create your game.
If you need custom mass-physics then you will need good opengl wisdom or opencl-cuda.
Jmonkey's engine lets you choose full-screen or windowed frame; anti aliasing(?X) or not; every resolution available; custom fps limiter; overridable simpleUpdate() and overridable simpleRender() methods to change 3D realm before it gets drawn.
There are types of light and shadow classes. Point light, spot light, directional light and appropriate shadow-casters of these. Also jmonkey supports Android.
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 am looking for a program to show a slotmachine animation (preferablly written in Java/SVG). I'm interested in showing the rotating wheels with images of my own choice.
I have found
http://www.doit.org/java/slot/SlotMachine.java
which is the source code for an Applet.
http://www.cs.columbia.edu/~sh553/teaching/w3134-s07/review/SlotMachine.java
Basic Slot Machine
do not have graphic support.
I am hoping there might be better/other solutions I could use for showing on a webpage.
http://www.treebuilder.de/default.asp?file=163540.xml
shows an SVG solution - this might be the closest to what I am looking for so far.
so far i could test the above applet by making a standalone java app from it. It works for the graphic part - the audio issue is discussed in
how can i run an applet as an application?:
I will now at least be able to try out other graphics without needing the applet params to be defined in a web page. I'd rather have a standalone solution e.g. like a restful Java app.
See Wheel, part of a larger project by Jernej Vicic, and this later variation, incorporated into a project by Mark Boyns.
It looks like you have examples of a slot machine model. For the view, you might look at this answer that suggests using Unicode glyphs or implementing the Icon interface. Also, consider this MVC example and this answer that illustrates rendering a BufferedImage.
Animating the visible face is straightforward, but a pseudo-perspective for adjacent facets would require a trapezoidal transform, available in JAI.
Addendum: How can I run an applet as an application?
Several examples of the hybrid approach are cited here. Note that applets, too, must be constructed and manipulated on the event dispatch thread. Also consider Java Web Start for deployment.