 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Owen Guest
|
Posted: Sat Apr 09, 2005 5:03 pm Post subject: JFormattedTextField in a applet |
|
|
Hello:
I try to use the JFormattedTextField in a applet, but I can't becuase I
create the JFormattedTextField component inside applet class:
.... extends Applet {
JFormattedTextField jFormattedTextField1 = new JFormattedTextField();
....
//Component initialization
private void jbInit() throws Exception {
jFormattedTextField1.setDoubleBuffered(false);
jFormattedTextField1.setEditable(true);
jFormattedTextField1.setEnabled(true);
jFormattedTextField1.setForeground(Color.black);
jFormattedTextField1.setSelectionStart(0);
jFormattedTextField1.setText("");
jFormattedTextField1.setBounds(new Rectangle(82, 299, 159, 20));
MaskFormatter mf1 = new MaskFormatter("######");
then I can't assign this MaskFormatter to this jFormattedTextField1, becuase
the method is protected. Then I have to assign this Formatter to the
jFormattedTextField1, but I don't know how, please if you give some code
but, please be the must explicit that you can, because I a begginer, in the
maskformatter that I want is accept exactly 6 number, it's not correct,
please help in this too.
Best Regards,
Owen
|
|
| Back to top |
|
 |
David Orriss, Jr. [TeamB] Guest
|
|
| Back to top |
|
 |
Owen Guest
|
Posted: Wed Apr 20, 2005 8:26 pm Post subject: Re: JFormattedTextField in a applet |
|
|
Hello:
Thanks for you answer, but please can you give me some example code of my
doubt with your soluction, How extend this to JApplet and how use
JFormattedTextField in this example.
Best regards,
Owen.
"David Orriss, Jr. [TeamB]" <jbuilder_man (AT) davenet (DOT) net> wrote
|
|
| Back to top |
|
 |
Arthur Ore Guest
|
Posted: Thu Apr 21, 2005 7:57 am Post subject: Re: JFormattedTextField in a applet |
|
|
Have you looked in Sun's tutorial?
http://java.sun.com/docs/books/tutorial/uiswing/components/formattedtextfield.html
Arth
"Owen" <anibal (AT) prensa-latina (DOT) cu> wrote
| Quote: | Hello:
Thanks for you answer, but please can you give me some example code of my
doubt with your soluction, How extend this to JApplet and how use
JFormattedTextField in this example.
Best regards,
Owen.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|