Overriding GAUGE class (Java Mobile Development - S60)

D

draegon

*MIDP2
*NetBeans 5.5.1 IDE
*S60 Platform 3rd, FP1 & 3rd MIDP

I'm new to developing for mobile devices using Java, so the problem
here may seem trivial, however...

I'm trying to implement a counter (similar to a gauge on a form). The
problem is:

1) I have a text field that I want side-by-side with the counter (text
first, counter second on the same row). Presently, they only align
text on top of gauge. Is there a special control attribute that will
allow the to exist on the same row? How do you place a control
where you want to?

2) I don't want the graphic indicator with the gauge; I just want the
number. And, the gauge must be able to show negative numbers.
Is there any way to override the gauge control class to exclude the
indicator
and register values less than zero? That not being the case, how do
you attach arrow-key events to a textfield so you can just update the
field when the BACK or FORWARD arrow is pressed?

Pardon my ignorance, but I've been going over documentation and
example code for 3 days and can't find anything (couldn't even find
midlet ICON instruction/restrictions, just stumbled upon it by trial-n-
error). I think the documentation system would be better served if the
titles better reflected the instruction set (i.e. How to Develop
Mobile Applications for S60 Using Java). It's really difficult sorting
out where things might be!

In fact, here's an original thought: how about somebody getting the
Gauge.java source code, and re-write it to a new class (i.e.
Counter.java) that does not include the graphics for a gauge, just the
text. I'm positive this type of control is much needed. I believe you
can find the source here (http://www.koders.com/java/fidEA548D...
359AEE05.aspx).

Sorry, but I'm not fluent enuff in Java to re-engineer the class, but
it would be a bonus for the dev_community if someone could.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top