How can I write a form from scratch, without using awt, swing or lwuit?
Printable View
How can I write a form from scratch, without using awt, swing or lwuit?
Uh... write your own JNI interface to the native window/widget library, I guess.
Why in the world would you not use Swing/AWT?
By form I mean a GUI form. The reason why I want to build it from scratch is I’m tired of fumbling in the dark every time I want to do something which leans half an inch outside the box. So let’s pretend swing and awt do not exist and I want to create a form, how do I do it?
Sounds like Java is not the language for you. Java deliberately restricts you to doing things in portable ways.Quote:
I’m tired of fumbling in the dark every time I want to do something which leans half an inch outside the box.
So yeah... you want to code forms "outside the box", find a Java binding to your platform's native window/widget library (like this) or write your own.
Ok, I'll let it go. But for the record, I don't think "accurate dragging on a touch screen", to give you an example, is possible using either swing, awt or (in the case of midlets) lwuit. The fact that they average the width of the touched surface means that any slight difference of pressure or rolling of the finger will translate into a movement.
I don't think the type and precision of the pointer input device are even accessible to the standard Java API. Java operates at a much higher level of abstraction. The details of pointer hardware probably demand native code and JNI bindings.