JPasswordField under android

by jaafar zbeiba » Sat, 12 Mar 2011 04:21:48 GMT


Sponsored Links
 hello I use a JPasswordField but I have a problem with java.awt.event
and java.swing

package com.example.tuto;

        import javax.swing.*;
        import java.awt.*;
        import java.awt.event.*;

        public class  Password()  extends JFrame implements ActionListener {

                JPasswordField pass;
                JButton test = new JButton("get");

                public Password(){
                        JPanel pane = new JPanel();
                        test.addActionListener(this);
                        pane.setLayout(new FlowLayout());
                        pane.add(pass = new JPasswordField(15));
                        pane.add(test);
                        setContentPane(pane);
                        setVisible(true);
                }

                public void actionPerformed(ActionEvent evt) {
                        Object source = evt.getSource();
                        if(source == test) {
                                char[] tet = pass.getPassword();
                                System.out.println(new String(tet));
                        }
                }

                public static void main(String[] args) {
                Saisir p = new Saisir();
                }

        }
help me please thxx

-- 



Re: JPasswordField under android

by Justin Anderson » Sat, 12 Mar 2011 05:08:41 GMT


 Ummm.... swing and awt are not included with Android.


Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 


On Thu, Mar 10, 2011 at 2:44 PM, jaafar zbeiba <jaafarinformati...@gmail.com




-- 


Sponsored Links


Other Threads

1. How to catch global events?

Hi all,

I want to write an application that monitors each and every keystroke
or move event that the user does on his phone.
How can i catch global events such as key strokes or motion events?
The point is catching them globally and not from within my application
-because my application will run in the background.

Thanks,
Ziv.

--~--~---------~--~----~------------~-------~--~----~

2. Query about Content Provider queries

I have one quick question and one maybe not-as-quick question:

1. Will we be able to employ more robust SQL(ite) queries on content
providers with future releases? For instance: joins, distinct, count,
max, etc?

2. Why isn't this possible now? I understand the concept of DB table
abstraction and the reasoning behind it, but why not still provide
some roundabout way of doing these operations (without storing the
content in a local SQLite table, of course)?
--~--~---------~--~----~------------~-------~--~----~

3. difference in android SDK version 0.9beta and 1.0

4. Content Provider for Drafts

5. IPC in dalvik api

6. Display multiple videos at the same time in Android r1.

7. problems implementing bitmap.recycle for improving performance