Jump to content

MarkT

WFG Retired
  • Posts

    727
  • Joined

  • Last visited

Posts posted by MarkT

  1. yeah, but considering the way the question was posed it's pretty obvious we're talking the first chicken egg...

    That and the fact that Quacker has posted twice clarifying this... :P

    From an evolutionist point of view, I'd have to say egg. Whereever you define the boundary between proto-chicken and chicken, the egg would have to cross it first.

  2. The low-tech solution to that problem, Tim, is to include the desktop shortcut click or keystroke at the start of the macro :grin:

    Other options for you would include Visual Basic/VBA, which can do a lot of stuff though OLE/ActiveX and their shell, and WSH - Windows Scripting Host - which is effectively the modern replacement to the old DOS *.bat files, it lets you code windows stuff in VBScript, JScript, even Perl if you feel that way inclined. Look here

    WSH is definitely my preferred solution, but it is a programmer's way: possibly too difficult, probably overengineered and certainly too powerful :rolleyes:

  3. I'd have been here earlier, Tim, but for that survey of yours :rolleyes:

    One goal of object-oriented programming is to seperate the implementations of specific objects. Globals are considered to be bad practice because, as soon as you include them, you're making the operation of your class dependant on the way that the database is implemented in your main code (i.e. it being a global there). (Buzzword: tightly coupled) It's preferable in most circumstances to have a very clear interface for your class: Constructor parameters, that you can see being passed in, are clear; globals are not.

    Of course, this is all just so-called good practice coding, freely ignorable.

  4. Wll, working on the console only is something i would not call "limited": it's far more difficult than clicking with the mouse everywhere...

    Blast it. Another one spoiled by Windows. :worship:

    Well, I'm a Linux (Red Hat/Debian) user, so I may be able to help you. I wouldn't (yet) consider myself an expert however.

    Any questions, fire away and I'll see what I can answer...

    Oh, Klaas: Recent Cygwin distributions optionally include an X-windows server, which (I think) you can get a version of KDE for. Haven't tried it myself, though.

  5. Oh, not very long. About half an hour, say.

    It's not a particularly complicated program; the only slightly taxing bit is looking up the documentation for those file I/O and graphics classes.

  6. @Mark

    Do you have a nice little example-program with Graphics you could post in?

    OK, here's something fairly simple...

    It's a mental arithmetic quiz. Compile it (javac Quiz.java) and run it (java Quiz 2), then answer the questions. When you've done 20, it'll graph your results for you.

    The methods that are involved in graphics are Quiz::GraphResults(), which creates the window, and GraphPanel::paint, which does the actual drawing.

    It's also got some file-handling in there, if you're interested.

    Oh, before you do any of that, change the file extension back to .java; I had to change it to get the forum software to let me post it.

  7. I've done a fair amount of graphics, not so much applets yet.

    For graphics resources, you could try looking up the documentation on java.awt and javax.swing...

×
×
  • Create New...