Skip to main content

how to remove left soft button from right soft button menu list

56 replies [Last post]
kavitharajdurai
Offline
Joined: 2010-08-25

i have 5 commands. such as back , select , name1, name2, name3.
here back command occupied as left soft key. remaining commands including back command occupied as right soft key in the name of menu. now i want to remove that back command from menu list.

please give me code. its very urgent.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kavitharajdurai
Offline
Joined: 2010-08-25

hai please try to reply........

kavitharajdurai
Offline
Joined: 2010-08-25

its urgent help me plz.....

i am using coordinate layout. i set textarea with large lines and after that text area i set one lable with one line.

my text area row column ll change based on device know..... so my problem is how to set row and column for text area???? also text area and lables are collapsed.
plz give solution.

my code are,

f1 = new Form()
{
protected void onShowCompleted() {
super.onShowCompleted();
invalidate();
}
};

Label sample=new Label("Cinimatographerss");
f1.setScrollable(true);
f1.setScrollableX(true);
f1.setScrollableY(true);
f1.setLayout(new CoordinateLayout(f1.getPreferredW(), f1.getPreferredH()));
f1.setTitle("Movie Info");
f1.getTitleStyle().setBgColor(0xff8c00);
f1.getTitleStyle().setFgColor(0xf0ffff);
Style menuStyle = new Style();
menuStyle.setBgColor(0xff8c00);
menuStyle.setFgColor(0xf0ffff);
f1.setMenuStyle(menuStyle);

l1 = new Label("Enthiran");
l1.getStyle().setBgTransparency(0);
l1.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
Style style1 = l1.getStyle();
style1.setFgColor(0xff8c00);
l1.setAlignment(Component.LEFT);
l1.setX(f1.getX());
l1.setY(f1.getY());
f1.addComponent(l1);

ta1 = new TextArea(11, 30);
ta1.setText("Dr Vasigaran is a great scientist specialized in robotics. He invents a robot looking exactly like a human. He names it Chitti.The Robot he makes is very versatile with the strength and intellect of  many human beings. Vasi introduces Chitti into the human enviornment which leads to some interesting & mind blowing incidents");
ta1.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
ta1.setBorderPainted(false);
ta1.getStyle().setBorder(Border.createEmpty(), false);
ta1.setGrowByContent(true);
ta1.setFocusable(false);
ta1.setEditable(false);
ta1.setAlignment(Component.LEFT);
ta1.setX(f1.getX());
ta1.setY(f1.getY()+l1.getPreferredH());
f1.addComponent(ta1);

l9 = new Label("Cast");
Style style2 = l9.getStyle();
style2.setFgColor(0xff8c00);
l9.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
l9.setAlignment(Component.LEFT);
l9.setX(f1.getX());
l9.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH());
l10 = new Label("Rajinikanth & Aishwarya Rai");
l10.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
l10.setAlignment(Component.RIGHT);
l10.setX(f1.getX()+sample.getPreferredW());
l10.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH());
f1.addComponent(l9);
f1.addComponent(l10);

l11 = new Label("Music");
Style style3 = l11.getStyle();
style3.setFgColor(0xff8c00);
l11.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
l11.setAlignment(Component.LEFT);
l11.setX(f1.getX());
l11.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH()+l9.getPreferredH());
l12 = new Label("A.R. Rahman");
l12.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
l12.setAlignment(Component.RIGHT);
l12.setX(f1.getX()+sample.getPreferredW());
l12.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH()+l9.getPreferredH());
f1.addComponent(l11);
f1.addComponent(l12);

l13 = new Label("Cinematographer");
l13.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
Style style4 = l13.getStyle();
style4.setFgColor(0xff8c00);
l13.setAlignment(Component.LEFT);
l13.setX(f1.getX());
l13.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH()+l9.getPreferredH()+l11.getPreferredH());
l14 = new Label("E. Rathnavel");
l14.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
l14.setAlignment(Component.RIGHT);
l14.setX(f1.getX()+sample.getPreferredW());
l14.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH()+l9.getPreferredH()+l11.getPreferredH());
f1.addComponent(l13);
f1.addComponent(l14);

l15 = new Label("Editor");
l15.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
Style style4a = l15.getStyle();
style4a.setFgColor(0xff8c00);
l15.setAlignment(Component.LEFT);
l15.setX(f1.getX());
l15.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH()+l9.getPreferredH()+l11.getPreferredH()+l13.getPreferredH());
l16 = new Label("Antony");
l16.getStyle().setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
l16.setAlignment(Component.RIGHT);
l16.setX(f1.getX()+sample.getPreferredW());
l16.setY(f1.getY()+l1.getPreferredH()+ta1.getPreferredH()+l9.getPreferredH()+l11.getPreferredH()+l13.getPreferredH());
f1.addComponent(l15);
f1.addComponent(l16);

fi.show();

kavitharajdurai
Offline
Joined: 2010-08-25

hi sir try to give code or link for convert png image into bytes.(image encoding).

bhakki
Offline
Joined: 2009-09-09

see this link,

[u]http://www.chrfr.de/software/midp_png.html[/u]

[u]http://catcode.com/pngencoder/[/u]

But i didnt tried this before...

kavitharajdurai
Offline
Joined: 2010-08-25

i used multiple textboxes in with box layout inside the form.
in my simulator everything ok. but when i use my code in nokia E-70 text area width does not end with screen.
how to increase text area width?

for ex,
if i want to display "this is a large text area" in one line means it print like this,
this is
a large
text area

i want to display it is in one line. my code is,

f7 = new Form("Public Notice")
{
protected void onShowCompleted() {
super.onShowCompleted();
invalidate();
}
};
f7.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
f7.getTitleStyle().setBgColor(0xff8c00);
f7.getTitleStyle().setFgColor(0xf0ffff);
Style menuStyle = new Style();
menuStyle.setBgColor(0xff8c00);
menuStyle.setFgColor(0xf0ffff);
f7.setMenuStyle(menuStyle);
pl4 = new Label("Public Notice");
pl4.getStyle().setBgTransparency(0);
pta4 = new TextArea(2,30);
pta4.setText("Public in General, Film Producers, Overseas Film Distributors, and the further notice.");
pta4.setBorderPainted(false);
pta4.getStyle().setBorder(Border.createEmpty(), false);
pta4.setGrowByContent(true);
pta4.setFocusable(false);
pta4.setEditable(false);
policyBackCommand = new Command(" Back");
f7.addCommand(policyBackCommand);
f7.setCommandListener(this);
f7.addComponent(pl4);
f7.addComponent(pta4);

f7.show();

bhakki
Offline
Joined: 2009-09-09

u can use setPreferredW or setPreferredH...

kavitharajdurai
Offline
Joined: 2010-08-25

i am very confusing. please solve my problem.
now i am working in net beans 6.9.1.
how can i get phone(simulator) memory?

how to use memory card? please give some idea.

Mixa

Hi,

JSR-75 can be used to work with phone's file system. But it is not
supported by all phones (especially old ones) and usually requires the
application (midlet) to be signed (otherwise user will be prompted for
each operation). A certificate for that costs about $500 per year. And
there are problems with certificates on some phones (due to
differences in root certificates).

So most applications do not use it, but few advanced (such as Opera
mini) do provide signed builds which can work with file system on
phone. And I suspect that Opera often signs with vendors certificates,
not those available for regular developers. For preinstalled opera
mini - for sure.

Some info here: http://www.opera.com/mobile/help/faq/
see section "How to set permissions in signed versions of Opera Mini"

Mike

On Thu, Sep 23, 2010 at 3:00 PM, wrote:
> ok. thanks for your reply.
>
> i have another doubt. how to store images on simulator. i am used RMS concept. if i use RMS concept means images are destroyed when i close midlet.
>
> Is there any other possible way to save images on device by using memory card? (For example in android we can use SD card to save images) like this way...
> [Message sent by forum member 'kavitharajdurai']
>
> http://forums.java.net/jive/thread.jspa?messageID=483423
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

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

kavitharajdurai
Offline
Joined: 2010-08-25

ok. thanks for your reply.

i have another doubt. how to store images on simulator. i am used RMS concept. if i use RMS concept means images are destroyed when i close midlet.

Is there any other possible way to save images on device permenently by using memory card? (For example in android we can use SD card to save images) like this way...

when i open simulator i want to see that images..

Message was edited by: kavitharajdurai

bhakki
Offline
Joined: 2009-09-09

RMS concept is better for storing the image. but u cant store the large size of images in RMS. RMS only destroyed when u call deleteRecordStore(...). see this link for ur ref.,
[u]http://wiki.forum.nokia.com/index.php/How_to_Store_Images_into_RMS_%26_Fetch_from_RMS[/u]

If u need to access the memory card means u need to signing the midlet for some security purpose. otherwise it throws security exception. and u need to learn about jsr-75...

Bharath...

kavitharajdurai
Offline
Joined: 2010-08-25

ok if we use rms concept means, in which place images are stored in that simulator? is it possible to see that images when i open simulator? ( not open my application).

bhakki
Offline
Joined: 2009-09-09

No. Its not possible. u cant access the RMS outside of midlet...

kavitharajdurai
Offline
Joined: 2010-08-25

ok. i want to store the images in device permenently. i think i want to use memory card.

how can i use memory card in my simulator?

bhakki
Offline
Joined: 2009-09-09

u need to use jsr-75.

sample code.,

try
{
FileConnection fc = (FileConnection) Connector.open(filepath);
if(!fc.exists())
{
fc.create();
OutputStream out;
out = fc.openOutputStream();
out.write(raw);
out.flush();
out.close();
fc.close();
}
}catch(Exception e)
{
e.printStackTrace();
}

kavitharajdurai
Offline
Joined: 2010-08-25

file path means?????????

what is that "raw"?

bhakki
Offline
Joined: 2009-09-09

raw is byte[] value.

FileConnection fc = (FileConnection)Connector.open(filepath);
if (!fc.exists())
fc.create(); // create the file if it doesn't exist
fc.close();
}

its enough.

filepath - mention ur storage location on mobile.

kavitharajdurai
Offline
Joined: 2010-08-25

in my application file connection does not created. i know mistake in file path.

how can i get file path sir? in our j2me simulator does not have menu know? how can i find file path?

i am use
fc = (FileConnection) Connector.open("file:///C:/Documents and Settings/Kavitha/javame-sdk/3.0/work/0/appdb/filesystem/root1/photos");

is file path like this????

kavitharajdurai
Offline
Joined: 2010-08-25

i want j2me or lwuit code for set wall paper on mobile.

what can i do for do this task. i dont have any little idea abt it. please try to give some guidelines... now i am using net beans 6.9.1 and sdk 3.0 simulator. is this task possible in this simulator???????????

please reply soon.

bhakki
Offline
Joined: 2009-09-09

Its not possible on j2me or lwuit...
u cant change the mobile bgImage from ur apps.

kavitharajdurai
Offline
Joined: 2010-08-25

is it not possible to set wall paper through code ah?

bhakki
Offline
Joined: 2009-09-09

yes kavitha.

Mixa

Hi,

About opening web page in built-in browser - LWUIT has HTMLComponent
for that, see LWUIT examples.

You should start a new topic for this question.

Regards,
Mike

On Tue, Sep 21, 2010 at 5:17 PM, wrote:
> is it possible to open web page inside the application?
>
> that is i have one button name is "open".
> if i click open button i want to open google page in my application inside the simulator. is it possible.
>
> i used platformRequest() method. if i use this method means open web page in default web browser. i want to open in my application itself.
> [Message sent by forum member 'kavitharajdurai']
>
> http://forums.java.net/jive/thread.jspa?messageID=483255
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

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

kavitharajdurai
Offline
Joined: 2010-08-25

is it possible to open web page inside the application?

that is i have one button name is "open".
if i click open button i want to open google page in my application inside the simulator. is it possible.

i used platformRequest() method. if i use this method means open web page in default web browser. i want to open in my application itself.

bhakki
Offline
Joined: 2009-09-09

Normally list supports fire event by using actionListener. I think u made a mistake inside of listener.

Its possible by using HTML component in LWUIT.
see the LWUITBrowser application on LWUIT repository.

kavitharajdurai
Offline
Joined: 2010-08-25

k. if possible try to give sample code for list item selection listener.

i need sample code for when i click game-fire key i want to select list items.

now i am using select command for selecting list items. i want code for selecting list items when game-fire key pressed.

kavitharajdurai
Offline
Joined: 2010-08-25

f we want to set font size to text means what can i do? i know three possible way Font-size (large,medium,small). is it possible other then this way?

bhakki
Offline
Joined: 2009-09-09

try it in resource file. set the font face, size whatever u want...

kavitharajdurai
Offline
Joined: 2010-08-25

now my list item selection code perform properly. i did mistake in action listener only. thanks for ur help.

now i want to change font size. u told try to use resource file know.
how to use resource file. try to give some guidelines about resource file or give sample code by using resource file for change font size.

bhakki
Offline
Joined: 2009-09-09

see this links,

[u]http://www.themeswiki.org/Building_themes_using_LWUIT[/u]

[u]http://today.java.net/article/2008/09/19/using-styles-themes-and-painters-lwuit[/u]

kavitharajdurai
Offline
Joined: 2010-08-25

i want j2me or lwuit code for set wall paper on mobile.

what can i do for do this task. i dont have any little idea abt it. please try to give some guidelines... now i am using net beans 6.9.1 and sdk 3.0 simulator. is this task possible in this simulator???????????

please reply soon.

shankar_vn
Offline
Joined: 2009-11-03

Removed my post. Ignore this.

kavitharajdurai
Offline
Joined: 2010-08-25

i did like this sir. again i get same issue. what can i do. please help me.

public void processFormHome()
{

mainCommand = new Command("Back",1);
formHome=new Form()
{
protected List createCommandList(Vector commands)
{
commands.removeElement(mainCommand);
List l = new List(commands);
l.setFixedSelection(List.FIXED_NONE_CYCLIC);
return l;
}
};

formHome.setTitle("Home");

listHome = new List();
listHome.addItem("Think Music Apps");
listHome.addItem("Blog");
listHome.addItem("News");
listHome.getUnselectedStyle().setBgColor(0xf0ffff);
listHome.getSelectedStyle().setBgColor(0xff8c00);
listHome.setListCellRenderer(new DefaultListCellRenderer(false));
listHome.setListCellRenderer(new listRender());
formHome.addComponent(BorderLayout.CENTER, listHome);
listHome.addActionListener(this);

songsCommand = new Command("Songs",4);
moreCommand = new Command("More",3);
downloadsCommand = new Command("Downloads",2);
//mainCommand = new Command("Back",1);
formHome.addCommand(mainCommand);
formHome.addCommand(downloadsCommand);
formHome.addCommand(moreCommand);
formHome.addCommand(songsCommand);

UIManager.getInstance().getLookAndFeel().setMenuRenderer(new MenuRenderer());
formHome.setMenuCellRenderer(new MenuRenderer());
formHome.addCommandListener(this);
formHome.setCommandListener(this);
formHome.show();

}

kavitharajdurai
Offline
Joined: 2010-08-25

when i select game-fire key in mobile i want to select list items. try to give sample code for implement this. i am used list.addActionListener; but it doesn't work.

another one question is how to open default media player in my simulator? is it possible? or is it necessary to draw media player by using lwuit or high level interface. i want to play song when i click play command.

bhakki
Offline
Joined: 2009-09-09

Yeah its possible with LWUIT.
see dis link,
[u]http://forums.java.net/jive/thread.jspa?messageID=279927[/u]

And
I cant get clearly abt 1st ques..
Can u post ur coding?

Bharath...

kavitharajdurai
Offline
Joined: 2010-08-25

1)my first question is how to select list items? i am using command button for selecting list items. but i want to select items when i pressed game fire key (center button).

2)if possible try to give simple sample code for play audio files or open media player by using lwuit.

bhakki
Offline
Joined: 2009-09-09

see the LWUITDemo project in LWUIT 1.4 package and see the RenderingDemo class..

I didnt tried for video and audio player.
But u can see this threads, it vl helps u.

[u]http://forums.java.net/jive/thread.jspa?threadID=151471&tstart=105[/u]

[u]http://forums.java.net/jive/thread.jspa?threadID=78814[/u]

Bharath...

kavitharajdurai
Offline
Joined: 2010-08-25

already i seen that. didnt get any idea about list items selection by using game- fire key. try to give sample code plz.

kavitharajdurai
Offline
Joined: 2010-08-25

i add this code sir. but it shows error in object.length. what can i do. it shows create object class in ur package. why i want to add that object class in my package.

bhakki
Offline
Joined: 2009-09-09

Sorry comment d for loop. I posted my own code.. :)

kavitharajdurai
Offline
Joined: 2010-08-25

i did like this sir. again i get same issue. whats wrong with this code.

public void processFormHome()
{
mainCommand = new Command("Back",1);
formHome=new Form()
{
protected List createCommandList(Vector commands)
{
commands.removeElement(mainCommand);
List l = new List(commands);
l.setFixedSelection(List.FIXED_NONE_CYCLIC);
return l;
}
};
formHome.setTitle("Home");

listHome = new List();
listHome.addItem("Think Music Apps");
listHome.addItem("Blog");
listHome.addItem("News");
listHome.getUnselectedStyle().setBgColor(0xf0ffff);
listHome.getSelectedStyle().setBgColor(0xff8c00);
listHome.setListCellRenderer(new DefaultListCellRenderer(false));
listHome.setListCellRenderer(new listRender());
formHome.addComponent(BorderLayout.CENTER, listHome);
listHome.addActionListener(this);

songsCommand = new Command("Songs",4);
moreCommand = new Command("More",3);
downloadsCommand = new Command("Downloads",2);
mainCommand = new Command("Back",1);
//formHome.addCommand(mainCommand);
formHome.addCommand(downloadsCommand);
formHome.addCommand(moreCommand);
formHome.addCommand(songsCommand);

UIManager.getInstance().getLookAndFeel().setMenuRenderer(new MenuRenderer());
formHome.setMenuCellRenderer(new MenuRenderer());
formHome.addCommandListener(this);
formHome.setCommandListener(this);
formHome.show();

}

bhakki
Offline
Joined: 2009-09-09

Carefully check with ur code...

y u r initialize the mainCommand two time?
and y u r comment the this line?
formHome.addCommand(mainCommand);

and 1 more change u can use any of 1,
UIManager.getInstance().getLookAndFeel().setMenuRenderer(new MenuRenderer()); - common for all form
or
formHome.setMenuCellRenderer(new MenuRenderer()); - particular form

Bharath....

kavitharajdurai
Offline
Joined: 2010-08-25

actually i sent my modified code another one time. i think its couldn't reach u.

again i send code sir. sorry for inconvenient . i want to rectify this problem.
again i have same issue.

public void processFormHome()
{
UIManager.getInstance().getLookAndFeel().setReverseSoftButtons(true);
mainCommand = new Command("Back",1);
songsCommand = new Command("Songs",4);
moreCommand = new Command("More",3);
downloadsCommand = new Command("Downloads",2);
formHome=new Form()
{
protected List createCommandList(Vector commands)
{
commands.removeElement(mainCommand);
List l = new List(commands);
l.setFixedSelection(List.FIXED_NONE_CYCLIC);
return l;
}
};

formHome.setTitle("Home");

listHome = new List();
listHome.addItem("Think Music Apps");
listHome.addItem("Blog");
listHome.addItem("News");
listHome.getUnselectedStyle().setBgColor(0xf0ffff);
listHome.getSelectedStyle().setBgColor(0xff8c00);
listHome.setListCellRenderer(new DefaultListCellRenderer(false));
listHome.setListCellRenderer(new listRender());
formHome.addComponent(BorderLayout.CENTER, listHome);
listHome.addActionListener(this);

// songsCommand = new Command("Songs",4);
// moreCommand = new Command("More",3);
// downloadsCommand = new Command("Downloads",2);
// mainCommand = new Command("Back",1);
formHome.addCommand(mainCommand);
formHome.addCommand(downloadsCommand);
formHome.addCommand(moreCommand);
formHome.addCommand(songsCommand);

formHome.setMenuCellRenderer(new MenuRenderer());
formHome.addCommandListener(this);
formHome.setCommandListener(this);
formHome.show();

}

bhakki
Offline
Joined: 2009-09-09

It should work. I think u made some mistakes in ur code. plz check with ur code 1 more time and 1 more changes, no need to pass the two times listRenderer in setListCellRenderer method.

kavitharajdurai
Offline
Joined: 2010-08-25

thank u so much sir. its work.
thanks for ur help. its really very useful.

i want to ask doubt from you sir.
First question is,
i am using UIManager.getInstance().getLookAndFeel().setReverseSoftButtons(true); for reversing soft buttons.

if i use this code means all forms soft buttons are reveresed. i want to reverse particularly one form. then what property i want to use?????

2nd question is,

i am using back command in all form. but each back command have different functionality.

my code like,

Command backCommand1=new Comman("Back");
Command backCommand2=new Comman("Back");
if(ae.getCommand().euals(backCommand1)
{
form1.show();
}

if(ae.getCommand().euals(backCommand2)
{
form2.show();
}

if i choose backCommand2 command it always go to form1.show(); why?

bhakki
Offline
Joined: 2009-09-09

AFAIK No such method for ReverseSoftButton in the form. If u want to ReverseSoftButton means u can pass true value in setReverseSoftButtons at corresponding Form. Then u can pass false value to upcoming Form's.

I think its object reference problem in the command. try to check with printable statements.

Bharath...

kavitharajdurai
Offline
Joined: 2010-08-25

k thank u.

i have another doubt about send mail through j2me by using lwuit.
now i am using socket connection. i want to give smtpServer address. what is that?

is it possible to use mail4ME for send mail through j2me. how it is use? i am download javamail-1.4.3. where i can import this package in my application. how can i use this?

bhakki
Offline
Joined: 2009-09-09

read this sites,

[u]http://wiki.forum.nokia.com/index.php/Sending_mail_from_j2me_applications[/u]

[u]http://discussion.forum.nokia.com/forum/showthread.php?195478-send-email-from-device-using-j2me-but-not-using-smtp-server[/u]

Bharath...

kavitharajdurai
Offline
Joined: 2010-08-25

k thank u.

i am creating list in my form. i wrote functionality for each command selection in command button. when i choose select button each list items functions are working properly.

now my question is, when i select game- fire key i want to select list items. in my application when i select game-fire button it througn null pointer exception? why? what can i do to complete this?
also i am using list.addActionListener(this);

bhakki
Offline
Joined: 2009-09-09

Can u tel me briefly? I cant get clearly...

kavitharajdurai
Offline
Joined: 2010-08-25

how to 0verride command list. please try ro give sample code.