Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java & Palm

502802May 11 2006 — edited May 11 2006
Hello!
I have a problem!
I want to create a web page for cellular or palm. You know the technologies java (server side) that they automatically make rendering of one page for cellular or palm? I know the Oracle ADF technology (based on Java server faces), but he uses Javascript in the Tag that I cannot use.
Is possible to have the ADF without javascript in the Tag?

Thank you! Good bye..!

Francesco

Comments

darrylburke
Moderator action: Moved from Java Programming.

db
darrylburke
You add the <tt>KeyListener</tt> to the <tt>Applet</tt>, so why do you expect to get <tt>KeyEvent</tt>s in the <tt>Canvas</tt>?

Do you have a reason for using an <tt>Applet</tt> (AWT) and not a <tt>JApplet</tt> (Swing)? With a Swing <tt>JApplet</tt> and a <tt>JPanel</tt>, you get double buffering for free and you can use Key Bindings.

db
801176
Uhh thanks!

I want they Key event s in the Applet. But I don't get them.:S

EDIT:

I found the solution, if someone have the same problem:
KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new KeyEventDispatcher() {

            public boolean dispatchKeyEvent(KeyEvent e) { // This example converts all typed keys to upper case
                if (e.getID() == KeyEvent.KEY_TYPED) {
                    e.setKeyChar(Character.toUpperCase(e.getKeyChar()));
                } // If the key should not be dispatched to the
                // focused component, set discardEvent to true
                System.out.println(e.getKeyChar());
                boolean discardEvent = false;
                return discardEvent;
            }
        });
Edited by: Teh Heavenly on 2010.10.05. 12:43
801176
Took me 3 hours googling, but finally...
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 8 2006
Added on May 11 2006
1 comment
198 views