|
csammis posted:Java 1.5: Class.getResource() and friends will get you a file if it's on your classpath. So, in your example: code:
|
# ¿ Mar 1, 2008 01:17 |
|
|
# ¿ Apr 28, 2024 19:51 |
|
Alan Greenspan posted:OK, I'm pretty sure this is what happens. right. You have to draw a fresh image every time you zoom. One thing you can try is rendering the maximally zoomed-in image at start-up and rendering scaled-down versions of it as events warrant. There's really no free lunch when it comes to rendering high-quality zoomed-in text, you just shuffle the work around. rotor fucked around with this message at 21:44 on Mar 4, 2008 |
# ¿ Mar 4, 2008 21:13 |
|
roadhead posted:I'd like to Parse an HTML-formatted String (so I can get tables at a certain width, columns either justified or centered, other simple stuff). If I understand you correctly (never a safe bet) it seems that html has nothing do do with this. You have some string data you want formatted nicely on fixed-width font printers, and you're trying to abuse an html layout engine to do this. My advice would be to look around for something like a java curses library or just write your own - formatters like this are pretty common homework for programming classes, so I'd be surprised if you can't find some kind of libraries floating around.
|
# ¿ Mar 9, 2008 01:39 |
|
roadhead posted:Since a customer could have any model of printer, the width of the form is defined run-time, which is why I wanted to use HTML and set the width of the table with a resolvable variable. yeah. You'll kill yourself trying to make the html layout engine do this properly. Dig up a java curses library, it shouldn't be too hard. Unless your input is HTML ... in which case my advice would be to strip out the html and then find a java curses library. I just don't see how you're going to take an html renderer and get it to spit out fixed-width font layouts in any kind of reasonable way. This is what console-based apps are really good at, so I'd go back and look at the display libraries for those - i.e. curses.
|
# ¿ Mar 9, 2008 22:45 |
|
BELL END posted:I've never understood the big hullabaloo about this. Me neither. It's one of those things that just comes down to readability. Multiple return statements are bad when they're bad - ie hard to read - and not when they're not. Just like everything else.
|
# ¿ Mar 18, 2008 23:53 |
|
|
# ¿ Apr 28, 2024 19:51 |
|
such a nice boy posted:Don't say orientated. I find it really disorientating when people pronounce it that way.
|
# ¿ Mar 20, 2008 03:51 |