Author Topic: Request for a Java Programmer  (Read 43041 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Request for a Java Programmer
« Reply #45 on: December 22, 2010, 09:53:39 am »
@Hot_Dog: I tried to make it GUI, but the code is too complex for my experience with Java (2 months). Sorry :(

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Request for a Java Programmer
« Reply #46 on: December 22, 2010, 10:11:32 am »
@Hot_Dog: I tried to make it GUI, but the code is too complex for my experience with Java (2 months). Sorry :(

No worries, man 8)  Nemo, GUI by any chance?  ;D

Deep Thought, a couple more things if you are able.  It would be nice if the program could somehow display error messages in color.  Also, I found that I had no errors whenever my maximum character was smaller than my minimum character.  Finally, if the program name is smaller than 8 characters, I wonder if you could add 0s at the end, as in the number zero
« Last Edit: December 22, 2010, 11:38:37 am by Hot_Dog »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Request for a Java Programmer
« Reply #47 on: December 22, 2010, 02:26:14 pm »
Also, I found that I had no errors whenever my maximum character was smaller than my minimum character.

x.x Forgot about that. Whoops.

Those fixes should be easy. I'll post it today.

And if I can relearn GUI stuff, maybe that as well.

EDIT: Command-line Java doesn't support color, unfortunately.

EDIT2: Attached.
« Last Edit: December 22, 2010, 03:47:59 pm by Deep Thought »




Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Request for a Java Programmer
« Reply #48 on: December 22, 2010, 04:10:26 pm »
Deep Thought, forget the GUI, i've got it covered.

Hot_Dog, approval? i can easily space it out by changing just a few numbers.

edit: oh, and it doesn't work yet. it's just the skeleton right now.
« Last Edit: December 22, 2010, 04:10:46 pm by nemo »


Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Request for a Java Programmer
« Reply #49 on: December 22, 2010, 04:19:12 pm »
Deep Thought, forget the GUI, i've got it covered.

Great, some info if you need it:

My program doesn't prompt for the name of the font. It just takes the name of the bitmap, strips the ".bmp," runs toUpperCase(), and pads it with zeros until it's eight characters long. So basically, whatever the bitmap's called is what the .8xp is called. Not sure what Hot_Dog wants, though.

Any questions about the code, just ask me :)




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Request for a Java Programmer
« Reply #50 on: December 22, 2010, 04:21:06 pm »
Nice job nemo, we've got a great java programmer here too.

Also, nice job Deep Thought, you made the original program :)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Request for a Java Programmer
« Reply #51 on: December 22, 2010, 04:42:55 pm »
Deep Thought, forget the GUI, i've got it covered.

Great, some info if you need it:

My program doesn't prompt for the name of the font. It just takes the name of the bitmap, strips the ".bmp," runs toUpperCase(), and pads it with zeros until it's eight characters long. So basically, whatever the bitmap's called is what the .8xp is called. Not sure what Hot_Dog wants, though.

Any questions about the code, just ask me :)

i noticed that. the GUI has a name field though, so i plan on doing the same operation as you except take it from the name field.

i gotta say, your code is interesting to go through. how did you figure out that 16973 is the identification of BMP files?

anyway, hot dog, as you may or may not know i'm pretty good at dealing with images in java (*cough* juggernaut *cough*). i know a way i could extend the allowed filetypes to other lossless compressions, like PNG and GIF, granted that they are monochrome.
edit: nevermind, i could not. i wouldn't want to tamper with Deep Thought's code, now that i think about it.

edit2: done! hot dog, let me know if this works. jar file attached.
« Last Edit: December 22, 2010, 06:31:06 pm by nemo »


Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Request for a Java Programmer
« Reply #52 on: December 22, 2010, 05:58:57 pm »
Wow, a lot happened in 2.5 hours...

Deep thought, thanks for the changes!  Nemo, you too!

I would like it, though, if all text boxes are blank at the beginning.  Also, I have a screenshot of a file I tried to compile and an error box with no error message.  Finally, your error message for ending/starting characters should be "larger than or equal to" as opposed to simply "larger than."

And just like Deep Thought, don't push yourself to go "above and beyond the call of duty."  Plain 'ol monochrome, uncompressed bitmaps are fine ;D

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Request for a Java Programmer
« Reply #53 on: December 22, 2010, 06:02:54 pm »
Wow, a lot happened in 2.5 hours...

Deep thought, thanks for the changes!  Nemo, you too!

I would like it, though, if all text boxes are blank at the beginning.  Also, I have a screenshot of a file I tried to compile and an error box with no error message.  Finally, your error message for ending/starting characters should be "larger than or equal to" as opposed to simply "larger than."

And just like Deep Thought, don't push yourself to go "above and beyond the call of duty."  Plain 'ol monochrome, uncompressed bitmaps are fine ;D

yep, i already reattached a fixed version, hoping no one would notice, but you did. new version attached in the same place.


Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Request for a Java Programmer
« Reply #54 on: December 22, 2010, 06:08:48 pm »
Hmm...I'm not seeing the .8xp file (meaning I probably can't find it), and I still have the error message saying "Ending character must be larger than starting character" instead of "ending character must be larger than or equal to starting character."

Otherwise, nice job!

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Request for a Java Programmer
« Reply #55 on: December 22, 2010, 06:10:28 pm »
Hmm...I'm not seeing the .8xp file (meaning I probably can't find it), and I still have the error message saying "Ending character must be larger than starting character" instead of "ending character must be larger than or equal to starting character."

Otherwise, nice job!

oh poop i neglected that error message. new version updated  :-[

andd i think the 8xp file is made in the same directory as the BMP. at least that's where it was for me.


Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Request for a Java Programmer
« Reply #56 on: December 22, 2010, 06:12:36 pm »
That's actually some pretty good code, nemo. I like the way you handle error messages, too.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Request for a Java Programmer
« Reply #57 on: December 22, 2010, 06:14:54 pm »
Nice, I like the error message too. One :D But noticed a bug (probably why Hot_Dog didn't see the .8xp): It only works if the .bmp file is located in the same directory as the compiler.

EDIT: And after it compiles, it seems to keep the source bitmap in memory, so when I try to compile a different font, it compiles the first one.
« Last Edit: December 22, 2010, 06:17:27 pm by Deep Thought »




Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Request for a Java Programmer
« Reply #58 on: December 22, 2010, 06:15:36 pm »
That's actually some pretty good code, nemo. I like the way you handle error messages, too.

i always used to get mad when i entered 5 pieces of information, and the software took the time to point out each error message individually, rather than just give me everything i'm doing wrong. thanks graphmastur


Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Request for a Java Programmer
« Reply #59 on: December 22, 2010, 06:18:15 pm »
Much better!  Deep thought is right...I found my files on the desktop because my program and .bmp were in different folders.  But that's a minor detail, because I can say in the instructions "program and bitmap must be in same folder."

Okay, now the program allows illegal filenames (I put a ! in front of the program name), name needs to be forced to 8 characters, and, if possible, accept only monochrome bitmaps.