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 SkipVought 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: musik
  • Order by date
  1. musik

    Input String Comparison

    Is there a performance preference for doing a two-step toLowerCase and then equals? Why not just .equalsIgnoreCase()? (I suppose I could run a test... :) )
  2. musik

    How do you convert a string into a character array?

    String.toCharArray(); (which is not static) This allows things like: String myString = "my String"; char[] myChars = myString.toCharArray(); or using the implicit String object: char[] myChars = "my String".toCharArray(); What do you need the char[] for? (Not...
  3. musik

    Deeper explanation of "instanceof" needed.

    Why do I figure these things out only after I've posted? The usefulness, apparently, is if a is declared as some parent type and you're unsure of which child it was actually instantiated to. Changing my example to: Object a = new Date(); boolean b = (a instanceof String); boolean c = (a...
  4. musik

    Deeper explanation of "instanceof" needed.

    I'm confused. Since (a instanceof b) won't even compile unless you have compatible types on both sides, what use is it? I mean, I already have to know that a is declared as type b or as a child of type b, so... what's the magic of having an operator tell me? And if it's only telling me...
  5. musik

    StringTokenizer

    I would think it would be conceptually clearer (and actually a bit easier to code) to use two StringTokenizers, one that uses "\r\n" for its token and creates full-line tokens, and then another that uses "\t " and breaks those lines into pieces. Then you'd have a clear...
  6. musik

    Can someone explain Class.forName()???

    Found it. In Java in a Nutshell, 4th ed., David Flanagan, O'Reilly & Assoc., Inc., page 97: ------------------------------------------------------------ Initializer blocks ...Java does allow us to write arbitrary code for the initialization of class fields... with a construct known as a...
  7. musik

    Can someone explain Class.forName()???

    O.K... I think I'm almost with you. So is there a static method on jdbc driver classes that is getting called when Class.forName() loads the driver? (I read somewhere that Class.forName() "initialises" the class. Does this mean it's looking for some static "init" method or...
  8. musik

    Can someone explain Class.forName()???

    I hope this isn't a total "newbie" question. I've searched everywhere (including here) and can't find a decent answer. I feel better that the Deitel Java book says that a discussion of Class.forName is "outside the scope of this book". Here goes: What does...
  9. musik

    How do you bring a Component to front?

    Nevermind! I got it! All I had to do was use a JLayeredPane as my top level container.
  10. musik

    How do you bring a Component to front?

    To gain some flexibility in Java and Swing, I've been playing around with creating a "PlayingCard" component and implementing some simple card games. PlayingCard extends JPanel and simply uses two JLabels to display a suit icon and a number. PlayingCard also catches mouseDragged...
  11. musik

    Dynamically sizing a RichTextBox control

    Still snowed under, but it's slowly letting up. I thought it would end once the "break" (hahaha!) was over and students were back. WRONG. I will get to it eventually. :)
  12. musik

    New to ISA - Can't get restrictions working

    I've got ISA set up and have created a "Site and Content Rule" to Deny access to the web to a particular group of computers. It doesn't work. I've also tried to create a Shite and Content Rule to Deny access to the web for a particular user account. It also doesn't work. What's...
  13. musik

    Dynamically sizing a RichTextBox control

    Sorry... I'm in the throes of term-start preps (I teach and Direct IT at a local college) and haven't had a chance to put this into practice. It'll likely be the week of the 20th before things calm down enough for me to get to it. But it's in the back of my mind! Thanks for posting this!
  14. musik

    Any way to release a report dll without rebooting the server?

    Oh, it's just a personal preference thing. IIS's ftp has extremely limited functionality compared to pretty much all other FTP servers. And having grown up in a UN*X world where FTP can do _anything_, it just annoys me. :) You should have the uploads go to a temporary directory and then...
  15. musik

    Any way to release a report dll without rebooting the server?

    What FTP service are you using? *hopes the answer isn't IIS* MS's FTP server is simply awful. Glad it's working for you. :)
  16. musik

    Setting up VFP as a Linked Server

    Well, then I guess I have to reiterate my former question. Does anyone out there know why MS decided to do this implementation of linked servers???
  17. musik

    Dynamically sizing a RichTextBox control

    I would really appreciate it, strongm! :)
  18. musik

    Dynamically sizing a RichTextBox control

    I could use GetTextExtentPoint32, but I would have to parse the RTF to find every piece that's a different font/style/point size. ugh. What was your vague idea, strongm?
  19. musik

    Any way to release a report dll without rebooting the server?

    Sorry - I forgot to turn on E-Mail Notification. Are you still working on this?
  20. musik

    Setting up VFP as a Linked Server

    Ummm, well, in a needlessly messy implementation, SQL Server does not allow you to SELECT from a Linked Server. You have to use OPENQUERY: SELECT * FROM OPENQUERY(Mylink, ' SELECT * FROM MDCTRN ') (I usually make it multi-row like that, at least in Query Analyzer, to separate the ''s from the...

Part and Inventory Search

Back
Top