Pure lightweight app in java

Is it possible to write "clean" easy code in java? Swing is lightweight, but even it has heavyweight components like JWindow, JFrame, JDialog, and JApplet. Thus, even Swing applications are not 100% independent of the underlying OS.

Is it possible to have lightweight applications in java that are completely independent of the underlying OS for the graphic display? Is it possible to write such code in java?

+1
source share
4 answers

Um ... Yes, these AREs are "100% independent" of the OS.

At least to the point that all JVMs must support them.

, , 100% . Swing , , , ( ) .

, JVM , Swing. , , Swing .

+8

, , .

Swing, SWT. ( GUI OS).

+1

, , , , - : .

, - Swing , A), , Swing AWT, AWT , B) , .

0

You need some kind of interaction with the display. Obviously, you can create bitmaps in memory without any graphics hardware. There are several network mapping protocols, in particular X Windows (X11) and the protocol used by VNC. You can also have a server displaying interface upgrades and WebStart / JNLP. I understand that Opera Mini uses a midlet to display bitmap images and returns the input to a web browser (presumably based on the desktop Opera) running on a remote server. Previously, IBM used remote AWT (before Swing, IIRC).

0
source

All Articles