Best way to display scalable graphics as icons in JavaFX? - java

I am making a desktop app using JavaFX as the GUI Framework. I wan't my app to scale at any DPI, so I want sharp icons whether the app is run on a 1024x768 or 4K screen. In HTML achieving this is pretty easy with SVG, however I have not found a way to display scalable graphics directly in JavaFX.
What is the best way to achieve this? The app will obviously contain many icons, so I need it to be light and fast. Frankly, I haven't found anything close to what I want searching Google.
Thanks for your help!

Here is a library that you might want to have a look at:
JavaFXSVG

In addition to mipa's answer, I have similarly solved my problem using svg2fxml, available here: https://tomsondev.bestsolution.at/2012/08/22/svg-to-fxml-converter-as-commandline-util/

Related

How can i create an responsive app to all sizes in android studio

I'm really confused about this, i've been working with linearlayout only and apparently it's not responsive to all screen sizes, i looked online about some solutions and i found that people usually create diffrent xml files for diffrent screen sizes which seems like alot of work, is there any other way for doing that without going throught all of that trouble ?
what trouble? Creating individual layouts for your screen's variations in xml files is good way to separate layouts from code. Beside, you could use fragments for reusing layouts
I think you should try using other layouts, arbitrary options for designing a scalable interface, such as ConstraintLayout, you would design probably based on the aspect ratio of the screen, there are a few things. will help you, Chain, GuildeLine, .... All of it is in ConstraintLayout
More information about ConstraintLayout from Google:
https://developer.android.com/training/constraint-layout.
Some special screens need separate layouts such as Tablet, .....
best solution for doing this is constraint layout by using can build your responsive ui .
you can find some tutorials for using this layout in youtube .
or you can use google tutorial in android developer site.

Is there a way to embed TightVNC Java Viewer without all those buttons?

I am playing with the TightVNC viewer for Java and can't find the way to embed the VNC screen (Viewer) into my JFrame window. I do not want a separate window. In fact I do not want any of those (useful, but sometimes not required) buttons.
Simply put, I want to have a JFrame with VNC viewer taking the whole window, and all other stuff from the TightVNC viewer hidden.
Any ideas how to achieve this will be greatly appreciated.
TigerVNC and TightVNC are almost the same (1st depends on the 2nd), but TigerVNC is organized a bit different. Because I don't think it would add up explaining everything for TightVNC in detail I'd suggest using TigerVNC instead, if it is possible license-wise ... maybe your problem doesn't exist there. The steps are the same (trace through the code or something... to find the places where the viewport is assembled) for all Java GUI applications, just the classes have other names.

JavaFX tile/flow pane animation

I'm just playing around with JavaFX 2 and developing a little application for my own amusement.
From what I've seen so far, I like it, and now I'd like to play about with some of the animation and effect properties.
The app I'm designing uses a lot of images to display info, and I'd like to design a animated GUI to display the images. The idea I've got is something like this:
http://www.youtube.com/watch?v=LK3B7cpZlGM
Could anyone provide any information on how to achieve something similar to this? I'm guessing the layout is the flowpane, but I've no idea about how the animation works. Is there some kind of sort algorithm in play?
Any advice or info would be greatly appreciated.
Thanks!!
There are several articles about animation in JavaFX:
Video: http://medianetwork.oracle.com/video/player/1193110454001
Tutorial: http://docs.oracle.com/javafx/2/animations/jfxpub-animations.htm
Ensemble sample has several examples in Animation section, and "Display Shelf" example which do a simple version of animation in video.

3ds animation on android

I'm struggling to find a way to load a 3d model/animation on Android.
I know min3d framework and I would like to create a sample 3d animation, like a level, and running it on android.
Min3D is supporting really well the md2 files but I don't know really how to edit md2s.
Is there any way to load 3ds animations even not using min3d? if not, is there an alternative way?
thanks
Here is a free library that should get you started:
http://www.jpct.net/jpct-ae/index.html

Analog and digital graph/

I got three breakout boards form spark fun.
and i wanted to test them out.
something that i can visualize like a moving graph.
do you have any suggested links or anything I can reference?
suggestions are greatly appreciated!
. i just want to have something simple like a line just going across on a graph
similar to this to test them :)
Best video codec to encode analog graph information / AVI
Umm, a graph of what exactly? I would suggest instead you grab a few LEDs and play with making them turn on/blink as your first project.
That would depend on which UI toolkit you are using (AWT, Swing, SWT). For SWT, you may want to look at SWTChart.
I have also used JFreeChart with good success.

Categories