Results 1 to 3 of 3

Thread: How to invalid component in Java Swing.

  1. #1
    Roderic Samuel is offline Senior Member
    Join Date
    Jul 2011
    Posts
    342
    Rep Power
    2

    Default How to invalid component in Java Swing.

    Hi friends, I just want to make one Sign in Java Swing in such a way that when the person make the three incorrect feedback in the User name or in the Code area then the Sign in Type instantly prevent the person feedback, so that the person can not able to make feedback or press on the Send option. How it can be possible to do this application in Move, if you folks have any thoughts then please let me know. Thanks in advance

  2. #2
    Silvio Jared is offline Senior Member
    Join Date
    Jul 2011
    Posts
    331
    Rep Power
    2

    Default

    According to my details this is one of the progress functions of Java Swing Technological innovation that it provides several integrated means for several measures. You can make use of ‘void setEnabled(Boolean b);’ means for Stopping and Empowering the Move Element in Coffee. This are the strategy can be stimulate by any of the example of Java Swing Elements. The strategy setEnabled(Boolean b); allow and turn off the operate of the ingredients using the parameter approved to these strategy. If it is ‘true’ then the component is permitted to performs and if the parameter is incorrect then the component is devastating to performs. E.g: btn.setEnabled(false); //This will turn off the particular component functions.

  3. #3
    Rupert David is offline Senior Member
    Join Date
    Jul 2011
    Posts
    321
    Rep Power
    2

    Default

    The java swing measures has many predefined strategy that can be used for managing the habits of Move Elements like TextField, TextArea, PasswordField, Button etc. If you wish to greyish out the component so that the person can not socialize with that particular component you can make use of the setEnabled(); strategy and the change element that you can also do is to cover that particular component with the help of setVisisble(); strategy.

Similar Threads

  1. Component in HWC query
    By Prudence Samuel in forum other peripherals
    Replies: 3
    Last Post: 12-24-2010, 01:56 PM
  2. PDF Viewer Component
    By Damian Holland in forum Download Tools and Softwares
    Replies: 0
    Last Post: 12-08-2010, 08:04 AM
  3. Swing timer class java program
    By RodríguezBrown in forum Programming
    Replies: 2
    Last Post: 01-27-2010, 01:38 PM
  4. Replies: 0
    Last Post: 10-12-2009, 11:10 AM
  5. What is component video
    By David Gower in forum Everything Else
    Replies: 0
    Last Post: 07-10-2009, 11:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48