Re: Can JOptionPane use a MaskFormatter for data input



dcMan schrieb:
Thanks Michael,
I did try to go through the API. But I guess just starting out in Java
and Swing, I didn't fully understand what the documentation was
informing me of what I could do.

In fact, this part (message parameter) of the API is a bit confusing.

One could interprete "The Component is displayed in the dialog" so that the Component is just rendered. In that case the example wouldn't work.

That's why I've written "(ab)using".

Luckily the component is not just rendered. It is added to the message area of the dialog.

Bye
Michael
.



Relevant Pages

  • Re: Which book is better, Core Java or Thinking in Java?
    ... >> Is one of these two books better for learning Swing? ... >> version of Thinking in Java as a reference while reading another book. ... >API & Language Documentation, and click on Java 2 Platform API ... > If you really need excruciating detail about the internals of Swing, ...
    (comp.lang.java.programmer)
  • Re: synchronization
    ... >This is a trap some open source weenies fall into because they've never ... Java and C# have the API as part of the class ... examining the API), C++ and Modula-2 have the API defined separately (in ... The documentation is not good enough ...
    (comp.lang.java.programmer)
  • Re: Why no serious MS Application in .NET yet ??
    ... Java tried that route with swing. ... once again an API developed using the native OS UI API. ... If the OS shell ever changes, the .Net framework ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Why no serious MS Application in .NET yet ??
    ... Java tried that route with swing. ... once again an API developed using the native OS UI API. ... If the OS shell ever changes, the .Net framework ...
    (microsoft.public.dotnet.framework)
  • Re: Why no serious MS Application in .NET yet ??
    ... Java tried that route with swing. ... once again an API developed using the native OS UI API. ... If the OS shell ever changes, the .Net framework ...
    (microsoft.public.dotnet.framework.performance)