|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
applet password field
Hello,
does anyone know how to get a password feld of stars using applets? unfortunately swing isn't supported on the web so it's no good, here's the bit of my code that needs assistance: import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import java.math.BigInteger; import java.lang.Character.*; public class SecPost extends Applet implements ActionListener { private LabeledTextField userNameField, passwordField, emailAddressField, hostField, portField,statusField, uriField; private Button sendButton; private TextArea resultsArea; private BigInteger gk,Pgak ; URL currentPage; public void init() { gk = new BigInteger("0"); Pgak = new BigInteger("0"); setBackground(Color.white); setLayout(new BorderLayout()); Panel inputPanel = new Panel(); inputPanel.setLayout(new GridLayout(9, 1)); inputPanel.setFont(new Font("Serif", Font.BOLD, 14)); userNameField = new LabeledTextField("User Name:", 15); inputPanel.add(userNameField); passwordField = new LabeledTextField("Password:", 15); // passwordField.setEchoChar('*'); inputPanel.add(passwordField); .......... it's just that last bit there, can anyone help? thanks adunkey |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > applet password field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|