Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: paulbradley
  • Order by date
  1. paulbradley

    Quick check if a String argument is actually an int?

    I have code that does certain stuff if it gets an intger argument, and other stuff if it is String. How can I quickly check if one of my args from command line is actually an integer without doing a parseInt and catching an exception if it is not?# Thanks
  2. paulbradley

    Make 3 similar focusListeners into 1 ?

    Looks good, cheers guys!
  3. paulbradley

    Make 3 similar focusListeners into 1 ?

    That won't work i'm afraid as the code is slightly different in each listener. Any other ideas, thanks.
  4. paulbradley

    Make 3 similar focusListeners into 1 ?

    Hi, I have 3 very similar FocusListeners and have been trying to find a way of having one and the labels and accesors & mutators accessed chaning depending on who triggered the listener. There are 3 textFields (tN, tP and tK) and 3 mutators and accessors (getN(), getP() and getK()) The...
  5. paulbradley

    repaint() but no changes until i minimise then maxamise?

    I have an application where entering certain numbers changes the data held, I had observers looking at these observables and when they are notified they make changes to what is displayed on screen, one of these is some swing graphics. I do a repaint() in the observer but when I run the app...
  6. paulbradley

    Center align the contents of a TextField

    Many thanks, but I would rather stick to AWT, any way of doing it with bog-standard TextFields ? Cheers
  7. paulbradley

    Center align the contents of a TextField

    Sounds basic but when I write tN = new TextField("1"); tN.setAlignment(CENTER); I get "cannot find symbol" error, despite the JAVA Api says I should be able to. Any ideas for center alignment of text field? Thanks.
  8. paulbradley

    Easiest way to check for change of textField content?

    I want to perform some actions upon the edit of a the content of a textField. Is a documentListner the easiest way? I've looked at these and they seem a bit complex.
  9. paulbradley

    Lock the size of a JFrame

    I've created an app that has a GUI in a JFrame, I want to be able to stop the user dragging the sides of the frame to alter it's dimentions - how do I do this? Thanks
  10. paulbradley

    Specify the width of a label?

    I would like to know the easiest way of specifiying how wide I want a label to be? Do I have to make changes to my gridLayout or are there any mehods within the label itself to do this? Thanks
  11. paulbradley

    MOD in assembly

    Cheers lionelhill, that's a great help!
  12. paulbradley

    MOD in assembly

    How do you program to find mod 10 of a number in assembly? In total i need to output a number held in a registered to the screen so need to mod 10, add 30 and put on a stack to be popped off in reverse.
  13. paulbradley

    Today's date after stored date in GregorianCalendar?

    I have a GregorianCalendar variable ('due') and I would like to compare this with today's date and return true or false if it is beofre or after it. Is there an easy way of doing this? Cheers in advance.
  14. paulbradley

    Parse a File to String ??

    I have the following code to get a file using a file chooser: //********** String filename = File.separator+"tmp"; JFileChooser fc = new JFileChooser(new File(filename)); fc.showOpenDialog(null); File selectedFile = fc.getSelectedFile(); System.out.println(selectedFile); Library lib =...
  15. paulbradley

    Get current URL?

    Is there a function to get whatever the URL of the current page is? Thanks.
  16. paulbradley

    Always show latest version?

    Thats great, thanks! For the reference of others, add: <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> in the <head>
  17. paulbradley

    Always show latest version?

    Is there a way of always ensuring people always see the latest version of a webpage rather than one stored in their temp documents? Ie. stops them needing to press refresh when they visit the page a 2nd time?
  18. paulbradley

    Use hyperlink rather than button?

    cheers
  19. paulbradley

    Use hyperlink rather than button?

    I want to send something by POST to another page but want the link to be a hyperlink not a submit button - is there a way of doing this? Thanks.
  20. paulbradley

    Restore my PC to factory spec...

    That's the problem. I think the CD drive has become uninstalled so I can't open or run any CDs. This happened once before and although the CD drive wouldn't function in windows I was able to get it to run the restore CD presumably from getting the CD to run on boot-up. However, this dosen't seem...

Part and Inventory Search

Back
Top