Phil Brumby

Greenhorn
+ Follow
since Jul 08, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Phil Brumby

Hi All,

Got a problem with Polish and I know there are a few users here so was just wondering if anyone could help.

I have an app that uses Midp2 Lists to display layers of menu options. I am using the excellent Polish to put a nice GUI on the app, it is however introducing a problem that I can�t remove on a series40 phone, it adds functionality to the number keys. So say i had a List with 4 elements and I pressed 3 on the keypad it would jump to option 3 and select it.

I only want select functionality from hitting the d-pad or from the left soft key. Any ideas how to turn the number key jump and select ability off?

When i run it without Polish the number keys aren't usable, so i'm assuming here Polish is adding this functionality.

Any help greatly appreciated.
Phil.
19 years ago
Hi All

Was wondering if anyone had come across distinctive behavioral differences between saving to the rms on a series 40 phone compared to a series 60 phone?

The reason i ask is i have a saving routine that works perfectly on a series 40 phone, but the same build on a series 60 behaves badly. The rms data becomes "out of sync", I�ll do my best to explain.

If i save some data and shut down, on restarting the saved data is not displayed within app (but an rms.db exists), so i do another save and shut down, on restarting the saved data that is loaded is that from the first save, not second.

If i save a third time and restart the data from second save is loaded, etc etc...

Havent posted the code because it works fine on series 40 and emmulators but will do if ppl think it would help.

Any insight greatly appreciated.
Phil.
19 years ago
Mark alas for my inability to post clearly!

My working Polish version IS also built in NetBeans, set up via the method described in the manual (same as the one you posted).

I build it by right clicking the build.xml in the FILE tab and Run Target, but this means no step through debug for that build.

So I can also build a version by going to the PROJECTS tab and building the project, a "traditional" NetBeans build, which outputs a non-Polished GUI version but I can step through debug.

I guess it's large java files for me

....

Just taking the Preprocessor thing on a different slant which might provide a solution regarding something Martin said.

NetBeans does implement preprocessing through it's own supplied preprocessor, it has minimal functionality but does have code fragment stuff and you can still step through debug? So it must rebuild the java file before sending it to virtual machine!

This leads me to the question, can I replace/or run concurrently with the NetBeans Preprocessor my own which will bring greater preprocessing functionality?

Phil.
19 years ago
Thanks for the quick response Mark, as you've probably noticed from the amount of Polish questions i've posted here i am actually developing with it, and yes it does rock.

Here my prob though, i've tweaked my build so i can build a version of the app in Polish, with a swanky GUI etc for release but then when im developing the code i can also build a regular version in NetBeans so i can use it's step through debugger

If i use the polish //#include for my sprite.inc file, yes it works with my polish build, but i lose the ability to step through debug in my netbeans version cos it wont build.

Any thought?

Thanks,
Phil.
19 years ago
Just wondering if anyone could advise me on this topic, I�ll outline my scenario.

Developing a midp2 app within NetBeans 4.1 and in order to keep jar size down am trying to implement a minimal amount of classes, this obviously leads to whopping big java files

So in order to keep on top of the code i was looking say to put all Sprite associated functions within a separate file called Sprite.inc and then include this .inc file onto the bottom of the .java file

Now i know this needs to be done in preprocessing with //#include Sprite.inc but it's getting a preprocessor working within NetBeans to do that?

Some pointers to the build.xml bits I need to fiddle with to get a custom preprocessor working would be greatly appreciated.

Thanks,
Phil.
19 years ago
Anyone shed some light on the below problem?

I have a situation where I have a List UI object filled with menu options, it's all tarted up nice using the excellent Polish GUI and displays fine.

I require that one of my menu options, when selected, initiates a Form UI object that contains some objects for user input.

Using the midp2 Display functions I switch to the form once the List option is chosen and it displays ok.

Here lies the problem, I want to make the background area of the form transparent, so the previous List screen is partially visible behind it.

Thought the image background attribute set to "transparent" would do this, i.e.

.textScreen {
margin-top: 10;
padding: 5;
padding-left: 6;
padding-right: 15;
background-color: transparent;
layout: horizontal-expand | horizontal-center | vertical-center;
}

Yet when I run it the Form screen's background is filled white entirely, so wiping out previous screen entirely.

Am I misinterpreting this transparent functionality or is it bust?

Any thoughts on alternative solutions welcome also

Thanks,
Pil.
19 years ago
What was the name of the zip you downloaded? And where did you get it from?

Everything you need should be here:

Polish Download Page

Pil.
19 years ago
Like the phones calculator, messaging app or say the camera mode

Can it be done from a running midlet? (midp2)

Thanks,
Phil.
19 years ago
Ooooh right the device requirements in build.xml!

changed Generic/midp2 to Generic/jtwi, bingo

I have exeeeeercised the demons, thanks Shawn.

Phil.
19 years ago
Thanks Shawn but all of that seems fine, within the project settings of NetBeans i have under Optional Packages Wireless Messaging API ticked and building project within NetBeans environment is fine, no error...

(i run a netbeans build to use debug, and polish to make use of it's UI stuff)

The problem comes with the ant run build.xml polish version, with it i'm assuming i have to include the wireless api in the classpath settings in the build.xml but it won't compile??

Anyone else shed some light?

19 years ago
Ok i shouldn't be making hard work of this but i am, if someone could help i'd be very grateful.

Developing in NetBeans 4.1 with Polish and am trying to include the wireless media package. So in my source i have:

import javax.wireless.messaging.*;

And in build.xml i have in the classpath:

<property name="polish.home" value="C:\Program Files\J2ME-Polish" />

<taskdef name="j2mepolish"
classname="de.enough.polish.ant.PolishTask"
classpath="${polish.home}/import/enough-j2mepolish-build.jar:${polish.home}/import/jdom.jar:${polish.home}/import/proguard.jar:${polish.home}/yguard-lib.jar:${wtk.home}/wtklib/kenv.zip:${polish.home}/import/wmapi.jar:"/>

Yet when i run it in test mode or release mode (it's just the demo polish project) i get package not found:

F:\Source\NetBean Projs\NewPolish1\build\test\Generic\midp2\en_US\source\de\enough\polish\example\MenuMidlet.java:37: package javax.wireless.messaging does not exist

import javax.wireless.messaging.*;

1 error

What simple step am i missing here?

Thanks,
Phil.
19 years ago
Thanks. Yeah the lack of phones supporting jsr 172 is frustrating.

kXML is pull based parsing though no? Needs to be model.

Looking at NanoXML i guess cos their zlib/libpng licensing is easier to handle than GPL licensed ones.

Phil.
19 years ago
Basically which?

Has to run in midp2 environment and has to be of model type.

Read the J.Knudson article on Sun Dev website but as it's over three years old I wondered if things might have changed a little.

Any thoughts greatly appreciated.

Thanks,
Phil.
19 years ago
Doh, have been v stupid.

Answered both quezzies in a one'r once i realised you could type in the drop down run>advanced menu as well selected items

Had also somehow commented in that parameter line in the example, which was causing probs.

All smiles now, apologies.

Phil.
19 years ago
Two quezzies regarding title of thread.

a, Currently trying to run the provided Polish 1.2.4 example in NetBeans 4.1. Now i can get it compiling ok and outputting jar's and jad's (which work when clicked on with emulator) but i can't get the build.xml script to run the emulator at build time??

If my created jar/jad location is F:\Source\NetBean Projs\PolishTest\dist, what should my <emulator> and <parameter> settings be?

b, How do you do multiple ant runs with polish in netbeans? ie test then j2mepolish together for provided example, because when you right click run and go to advanced you can only select one build type at a time from drop down menu?

Thanks,
Phil.
19 years ago