Skip to main content

java.awt.Choice trouble

15 replies [Last post]
manenkov
Offline
Joined: 2008-01-04

Hello all!

When I using a Choice element on my frame, a his drop-down list look a corrupted (every list`s position is "shrinked" on height).

Anybody have this problem? Or, from other side, anybody don`t have this problem?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
manenkov
Offline
Joined: 2008-01-04
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello all!
>
> When I using a Choice element on my frame, a his drop-down list look a corrupted (every list`s position is "shrinked" on height).
>
> Anybody have this problem? Or, from other side, anybody don`t have this problem?

Can you send a short testcase Java app that displays this problem? Does
it change if you change the font you use?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

manenkov
Offline
Joined: 2008-01-04

Changing of Choice`s font size is not helping....

code is below (I can send a screenshot if you want)

package testchoice;

import java.awt.Font;

public class Test extends java.awt.Frame
{
private java.awt.Choice choice1;

public Test()
{
initComponents();
//Font f = new Font("Dialog", 1, 8);
//choice1.setFont(f);

choice1.add("string 1");
choice1.add("string 2");
choice1.add("string 3");
choice1.add("string 4");
choice1.add("string 5");
}

private void initComponents()
{

choice1 = new java.awt.Choice();

addWindowListener(new java.awt.event.WindowAdapter()
{
public void windowClosing(java.awt.event.WindowEvent evt)
{
exitForm(evt);
}
});
add(choice1, java.awt.BorderLayout.CENTER);

pack();
}

private void exitForm(java.awt.event.WindowEvent evt)
{
System.exit(0);
}

public static void main(String args[])
{
java.awt.EventQueue.invokeLater(new Runnable()
{
public void run()
{
new Test().setVisible(true);
}
});
}

}

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Changing of Choice`s font size is not helping....
>
>
> code is below (I can send a screenshot if you want)
>

I just tried running your testcase on my Linux/x86 system using the
phoneME Advanced Personal Profile build, but I don't see the problem you
mentioned. My Choice component elements look fine with the proper height.

Yes, please send a screenshot of the problem you're having.

What system are you using? Which OS/CPU and which GUI toolkit?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

manenkov
Offline
Joined: 2008-01-04

Ok, I have a screenshot, to which I can send/put him?

I use a Windows Mobile 5.0 Image with Microsoft Device Emulator. Moreover, I run this code on real device under WM, and have such problem.

Concerning "Which OS/CPU": WM5 Emulator
Concerning "and which GUI toolkit?" I not assurance than I correctly understanding your question....
On emulator: I install a emulator, install a Personal_Profile-phoneme_advanced_mr2_b46-win32_arm_wm5-bin-rev7832.cab, put my jar on emulator and run it with a .lnk file with content

250#\phoneme\personal\bin\cvm.exe -classpath "\Storage Card\TestChoice.jar" "testchoice.Test"

On real device (unfortunately I not remember a model) I install a Phoneme from Personal_Profile-phoneme_advanced_mr2_b46-win32_arm_wm5-bin-rev7832.cab, and in exactly the same way put jar and run it with .lnk file.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Ok, I have a screenshot, to which I can send/put him?
>

Please upload to:

https://j2me-cdc.dev.java.net/servlets/ProjectDocumentList?folderID=8725...

(Log in using your java.net username/password, then click on "Add new
file" blue link across the top)

Then, please send the URL to your screenshot file.

> I use a Windows Mobile 5.0 Image with Microsoft Device Emulator. Moreover, I run this code on real device under WM, and have such problem.
>
> Concerning "Which OS/CPU": WM5 Emulator
> Concerning "and which GUI toolkit?" I not assurance than I correctly understanding your question....
> On emulator: I install a emulator, install a Personal_Profile-phoneme_advanced_mr2_b46-win32_arm_wm5-bin-rev7832.cab, put my jar on emulator and run it with a .lnk file with content
>
> 250#\phoneme\personal\bin\cvm.exe -classpath "\Storage Card\TestChoice.jar" "testchoice.Test"
>
> On real device (unfortunately I not remember a model) I install a Phoneme from Personal_Profile-phoneme_advanced_mr2_b46-win32_arm_wm5-bin-rev7832.cab, and in exactly the same way put jar and run it with .lnk file.

I see what you're saying now. Just to confirm, did you get your .cab
file from Davy Preuveneer's Web site:

http://www.cs.kuleuven.ac.be/~davy/phoneme/downloads.htm#windowsce50

My suggestion is to also try the WinMobile 2003 build:

http://www.cs.kuleuven.ac.be/~davy/phoneme/dist/Personal_Profile-phoneme...

Does the above run any different?

This might be a question to Davy Preuveneers on why the AWT Choice items
are corrupted.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

davyp
Offline
Joined: 2007-01-03

I ran the test example on both a WM2003 and WM2005 device and the
application appears to run in the same way as on a regular JDK 1.5 on
linux. When I launch the application, the size of the frame is too small to
see the selected option in full, but on a linux build of PhoneME the width of
the window is large enough to see the selected option. However, on a
regular JDK 1.5 and another J2ME implementation, the application also
starts with a too small window. After stretching the frame, I have no problem
with the options being shrinked in height. On the WM5 emulator, I get the
same results as on the real thing.

Regards
Davy

manenkov
Offline
Joined: 2008-01-04

I try several builds of Phoneme and on each get a problem with choice...

davyp
Offline
Joined: 2007-01-03

I cannot reproduce your problem.

I have put a screenshot of what I get on the emulator over here:
http://www.cs.kuleuven.be/~davy/phoneme/snapshot1.png

As you can see, I do not have the same font size issue. I might be using a
more recent build of pMEA to test with. I will try to put a new build on my
website soon for you to try out.

Davy

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I cannot reproduce your problem.
>
> I have put a screenshot of what I get on the emulator over here:
> http://www.cs.kuleuven.be/~davy/phoneme/snapshot1.png
>

Hi Davy,

Is your link (above) down currently? I can't seem to see the screenshot.

Thanks,

Hinkmond

> As you can see, I do not have the same font size issue. I might be using a
> more recent build of pMEA to test with. I will try to put a new build on my
> website soon for you to try out.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

davyp
Offline
Joined: 2007-01-03

Sorry, my bad. I synchronized a few files and deleted the snapshot by mistake.
I have uploaded it again.

Davy

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Sorry, my bad. I synchronized a few files and deleted the snapshot by mistake.
> I have uploaded it again.
>
> Davy
>
>

Thanks, Davy. I can see the screen shot now.

http://www.cs.kuleuven.be/~davy/phoneme/snapshot1.png

vs.

http://www.cs.kuleuven.be/~davy/phoneme/snapshot1.png

Hi manenkov, Do you think it might be a problem with your version of the
emulator? Have you tried download the latest Windows Mobile 5.0 emulator?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Hinkmond Wong

Oops, should be:

http://www.cs.kuleuven.be/~davy/phoneme/snapshot1.png

vs.

https://j2me-cdc.dev.java.net/files/documents/1139/85398/1.jpg

Hinkmond Wong wrote:
> phonemeadvanced@mobileandembedded.org wrote:
>> Sorry, my bad. I synchronized a few files and deleted the snapshot by
>> mistake.
>> I have uploaded it again.
>>
>> Davy
>>
>>
>
> Thanks, Davy. I can see the screen shot now.
>
>
> http://www.cs.kuleuven.be/~davy/phoneme/snapshot1.png
>
> vs.
>
> http://www.cs.kuleuven.be/~davy/phoneme/snapshot1.png
>
>
> Hi manenkov, Do you think it might be a problem with your version of
> the emulator? Have you tried download the latest Windows Mobile 5.0
> emulator?
>
>
>
> Hinkmond
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

manenkov
Offline
Joined: 2008-01-04

I check a Choice on Fujitsu Siemens Pocket LOOX PocketPC (OS version 4.21.1088) with Personal_Profile-phoneme_advanced_mr2_b54-win32_arm_pocketpc-bin-rev8967.cab, and have same trouble.

Maybe its help: after installing, Phoneme is showing a alert "The installed program might not work properly because it was desinged for previous versions Windows Mobile"

davyp
Offline
Joined: 2007-01-03

Please note that the cab you installed was compiled for PocketPC 2002 (using eVC3). I think your Pocket LOOX is running Windows Mobile 2003, Second edition. In that case you might want to try Personal_Profile-phoneme_advanced_mr2_b54-win32_arm_ppc03-bin-rev8967.cab instead. Also, I have no PocketPC 2002 device (or emulator for that matter) to test the pocketpc build, so it could be that this build has several issues I am not aware of.

Davy