CasiOo's Profile User Rating: *****

Reputation: 1503 Grandmaster
Group:
Mentors
Active Posts:
3,353 (2.12 per day)
Joined:
05-April 11
Profile Views:
17,260
Last Active:
User is offline Yesterday, 09:57 AM
Currently:
Offline

Previous Fields

Country:
DK
OS Preference:
Who Cares
Favorite Browser:
Opera
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
225
Expert In:
Java

Latest Visitors

Icon   CasiOo has not set their status

Posts I've Made

  1. In Topic: JTextField restricting input problem

    Posted 30 Jul 2015

    Inchidi your solution will not work
    - There are more input methods than just keyboard
    - What if you hold down a key to repeat it, click away from the application (while still holding the key), will be release event be fired? It might not
    - Don't use exceptions like that when you can avoid it. Exceptions take a long time to be built up with stack traces etc.
  2. In Topic: JTextField restricting input problem

    Posted 28 Jul 2015

    Hmm so you'll get the same result if not escaping them... Interesting.
  3. In Topic: JTextField restricting input problem

    Posted 28 Jul 2015

    Your regex is not right
    It needs to be something like
    private String regex = "[^\\+\\-\\*/\\.\\(\\)&&[\\D]]+";
    
    

    The double backslash spam is necessary because the symbols have other meaning in a regex
    \\D+ alone will be enough to just let digits through, the rest is for those other symbols ^^

    See this page for an explanation of what's used in the pattern https://docs.oracle....ex/Pattern.html

    Oh yea follow Martyr2 pattern above then you won't need the extra && and [] I added
    Just remember to add the \\ spam to it ;)
  4. In Topic: Exceptions and flow control...

    Posted 25 Jul 2015

    Thanks for the link, gave some good insight
    Now I'm just sitting here wondering what might happen with websocket connections? But I'm not working with ASP.NET at the moment, so I shouldn't be worried :D
  5. In Topic: Make Periodically Self-Updated Object

    Posted 25 Jul 2015

    If you really care about unit testing, then I highly recommend reading http://misko.hevery....eviewers-guide/
    Also search for "Clean code talks". Great stuff :)

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
3
Programming Languages:
Java, C#, VB.NET, JavaScript, PL/SQL, PHP (Basic)

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    riperator Icon

    31 Jul 2013 - 10:33
    <3 you
  2. Photo

    b.netana Icon

    23 Mar 2013 - 17:32
    thank*
  3. Photo

    b.netana Icon

    23 Mar 2013 - 17:32
    wanted to that you for your help with my gui practice
  4. Photo

    raghav.naganathan Icon

    25 Nov 2012 - 21:15
    Hi dude...I would like to tell you that your rep(729) is a perfect cube :) Cheers :)
  5. Photo

    ubunta Icon

    30 Sep 2012 - 23:33
    hi hello
    hope will be fine and feeling well!!!!!!!!!!!!!!
  6. Photo

    Proshnobodhok Icon

    12 Oct 2011 - 12:31
    Hi CasiOo,
    I really didnt know the term. nyways seems like you can help me in at least telling me the way to get the related resources. but is it against the IT laws?
  7. Photo

    CasiOo Icon

    28 Jun 2011 - 04:11
    Thank you :)
  8. Photo

    smohd Icon

    26 Jun 2011 - 19:39
    Welcome to contributors group
Page 1 of 1