|
As "Rechard" suggest, add KeyListener to your imageList and put your logic on KeyPress event to move the next item on the list on up/down arrow key.
Regards
Shubhashish
|
|
|
|
|
Read the tutorial.
and maybe make a little "Area51"-project where you try and test things aside from normal coding.
|
|
|
|
|
Thanks for your suggestions!!!
If I'm not concerning in my project then the main task of mine is to change the
item in a list on an event(Button or String Pass).
...I can do it on press of right key so I thought to read the right key programmatically.
I think you can understand what I want to say..
Thanks!
|
|
|
|
|
Indian Coder1989 wrote: I thought to read the right key programmatically. Yes, and you do this with a KeyListener, as we have said.
Use the best guess
|
|
|
|
|
KeyListener + passing the focus properly:
@Override
public void keyTyped(KeyEvent ke) {
if(ke.getKeyChar() == KeyEvent.VK_LEFT){
}else if(ke.getKeyChar() == KeyEvent.VK_RIGHT){
}
}
@Override
public void keyPressed(KeyEvent e) {
keyTyped(e);
}
also by input mapping:
private void inputMap(){
this.getInputMap().put(KeyStroke.getKeyStroke(
KeyEvent.VK_LEFT, 0), "left");
this.getActionMap().put("left", new AbstractAction() {
@Override
public void actionPerformed(ActionEvent ae) {
}
});
}
|
|
|
|
|
any body knows something about visual midlet?
|
|
|
|
|
|
Hi
How i can use bluetooth in j2me?
i want to connect another device with mobile by bluetooth.
|
|
|
|
|
Hello,
You may want to read following tutorials available on oracle site.
Regards,
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
is it possible to create a fake wifi connection for Android(Something like FakeGPS)?
modified 8-May-13 13:42pm.
|
|
|
|
|
I would suspect it is possible and also rather difficult to do.
|
|
|
|
|
I managed to create a mockup for unit testing.. but I need a dedicated app
|
|
|
|
|
hi i am using netbeans 7.2.1 for my java development . Recently i found that i cant compile the java programs. The compiler shows that "error could not find or load main class". So please help me to solve this problem
|
|
|
|
|
This is a common error. Its told you that classes ,you have used in your application, not in project classpath. So make sure that you have add the location of your .class file to your classpath.
Regards
Shubhashish
|
|
|
|
|
You are trying to run a program that has the wrong class name or no class with a public static void main(String [] args) method.
Use the best guess
|
|
|
|
|
To compile any class in netbeans you must specify the main() method in file named similar to class.If compiler don`t find that required method it will throw this error.
|
|
|
|
|
|
Hello, please how do I create text to speech gui using netbeans and hw do I deploy it to work as an application on other PCs
|
|
|
|
|
|
Hallo Java fans, I have to learn Java quick and need a book! Java for C++ veterans or something like that.
~~~~~~~ <;,>< ~~~~~~~~~~~
|
|
|
|
|
|
|
How can change Button Label value Every Time
when i start Virtual Keyboard, Means ,if 1st time Button1=''a'' then next login time Button1 = " any Alphabet "...is this Possible through Probability Distribution & Counter...?
|
|
|
|
|
|
Hi,
I am developing an application, where I need to convert the answers as questions, for example
if the
Ans : my internet connection is slow.
its corresponding question might be
Question : Why your internet connection is slow?
Like wise, is there any way or any algorithm in java.
Kindly assist.
|
|
|
|