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 <[email protected] > wrote: > 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 > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

