| |
| |
| |
|
Page: 1 2
Comments:
<0> anybody knows how to print in Java? <1> ma ningun culero te contesta xD <2> doc` : lots of stuff out there <2> you can use Swing , and print it using the Swing stuff <0> i got a problem <2> you can print to a pdf document , and maybe then print it <1> que te dice ese chavo? :| <0> my program only prints one time, when i send to print again i get a Exception, when i restart the computer i can print again one time =/ <0> <3> i want to insert a file into a db, so i need to open a file as simple bytes to p*** it to the insert funciont. Whitch cl*** do i need to work with the file? <3> anyone_ <3> ? <4> You read the file in with streams. (FileInputStream for example). <4> Likewise, you'll use streams to push the data to the database (for blob fields etc). <1> :| <1> nadie te ayudo .:S
<4> WTF <3> Talden: thx <3> Talden: i've no experience with uploading files to a db, so i just p*** the stream as a blob type? (i'm working with oracle) <5> does java really **** at GUI's? <2> heh <2> what kind ? <2> 3D games ? <5> what do u mean what kind? <5> nope <2> business ? <5> somewhat like that <2> you know, like... excel <6> define "****" even. <5> with buttons, listbox, editbox, etc <2> well, Swing can be a bit troublesome to learn. <2> but it works. <6> and with some gui builders there's not much to learn <2> With netbeans matisse , you can build it in minutes <5> netbeans matisse? <2> part of the netbeans IDE <6> "Netbeans Swing GUI builder" aka "Project Matisse". <5> can you do GUI designs with ease using that? <2> those input forms, buttons, whatnot , yes <2> If you want a 3d table , superflexible, DnD inter-application... <2> That might pull some hair out <6> try and find out I'd say. When done right you should even be able to do this easily in a text-based editor IMO. <2> there are also GUIs made in XML <6> aye <5> can you enumerate the widgets that is able to be created using java? <3> maybe this is more DB than Java, anyway: at the INSERT statement how do i inset the blob field with the FileInputStream instance? <5> nevermind.. found the demo <7> dudes, I used getfields to get for example BufferedImage.TYPE_INT_RGB from BufferedImage constructor using reflection but it only returns int ... how can I get constants ? <7> I get that BufferedImage(int , int, int) , how can I know that the last int is imagetype and can take specific values.. e.g. TYPE_INT_RGB <7> does this make more sense ? <6> sounds to me that you should check the API docs. <6> apart from that I have no idea. Not without checking those myself that is :P <7> did checks the docs.. did do what they say.. and still cannot figure out how to get the fact they are constants <7> I can get the modifiers and see they are static for example , but that wont help <6> int and constants aren't really comparible. <6> an int can very well be a constant. Then again; Java doesn't grok constants, it does grok final though. <7> hm.. <6> and static also has nothing to do with all this. So in the overal, at least to me, you're not making any sense what so ever. <7> hehehehee <7> lol <7> ok,Ill try to rephrase my thought : java.awt.image.BufferedImage(int,int,int) accepts 3 ints, BUT the constractor wonts int to have one of predefined values to work.. how do I get these predefined values , e.g TYPE_BYTE_INDEXED, TYPE_USHORT_565_RGB, TYPE_USHORT_555_RGB <6> check the API docs. <7> TYPE_3BYTE_BGR for example is int 5 <7> I want to get the possible values through reflection... thats my issue, I know the possible values but I want to retrieve them for any given cl*** during runtime <8> Hello <8> Why do exceptions in Java not have an error code? Is there a design decision behind this? What is the best way to recognise an exception if it checking what type it is is not enough? <8> say, "SQLException: could not connect" from "SQLException: could not insert, duplicate primary key not allowed, violation of constraint" <9> use a finer grained try/catch block comes to come. doing text comparision as a last resort (potentially prone to problems). <1> anybody knows how to print in Java? <10> is there something apart of the java language that will make certain lines of code only execute durring debugging? <11> where is X <0> vacations. <12> morning <13> morning <12> hey wlfshmn, wh***up?
<13> not much, sitting at home waiting for someone fomr the contractor to show up and replace my lock <13> or rather, reinstall my lock instead of theirs <13> this is a good thing, because it means I can no longer be supprised by constructionworkers at 7am inside my appartment <12> someone actually entered your appartment?! <13> They have been renovating the pipes in the complex and renovating the bathrooms <13> so there has been a valid reason for them to be in here. I do prefere to have mkore controll over who comes and leaves though ;) <12> :) <12> well, bbl, gotta go walk the dog and the get my hair cut <12> then <10> is there something apart of the java language that will make certain lines of code only execute durring debugging? <13> No <13> The codepath is the same for runtime and debuging. If it wasn't the debugger would be far less usefull than it currently is. <10> or somthing akin to the C preprocessor <13> You could look into ***ertions <13> Not quite what you look for (it's no #ifdef), but it could be helpfull <13> if the code you are trying to hide fomr runtime is debug output, you might want to use regular logging instead. Typically there is a debug loglevel <10> ***ert is pretty good but they would still be compiled in a release <10> ahh, good idea <10> i would help if the debugging code was not in the erlease though <13> debug loglevels are also there in release, and availible if you configure the log to be verbose enoguh though <13> danimal_: I don't think there is a way to do that directly. You could apply your logic through AOP I suppose, but it might be more work than you want to put into it <10> AOP? <13> aspect oriented programming <13> typically a manner of wrapping objects in dynamic proxies that contain specific functionality <13> http://en.wikipedia.org/wiki/Aspect-oriented_programming <10> yeah <10> that's quite an article for this time of day <13> yeah. I also think it's more work than you will want to put into this, and it still not a sure fit ;) <14> morning <13> morning <12> danimal_ - what exactly are you trying to accomplish? <10> essentially optional inclusion of certian lines of code in compilation <10> roughly the similar features as the C preprocessor's #define #ifdef #ifndef #else #endif <12> i guess you can use java preprocessor for that <12> wlfshmn - ever played with AOP? <13> MbGone: not for custom proxies, no <13> so only in a psring context <13> s/psring/spring/ <12> same here, but not with spring, with jboss makes life alot easier :) <11> what's jboss? <12> its an opensource application server http://www.jboss.org <15> final static boolean debug = true; ... if (debug) ... <15> ? <15> moin <12> morning Clackwell <15> hi mb <12> Clackwell - from what i gathered he didnt want to compile the code in the release version <15> MbGone: he didn't want the debug code in the release build, right? the above might achieve that, if i recall correctly. <12> as far as i know, this code will still b<16> Ew, javafaq.mine.nu _requires_ javascript to navigate. Ugly! <15> really? tststs... <15> see you later, eating and working... <16> Clackwell: the left-nav doesn't work without it. Ick! Should be nested UL with css for mouseover, and href+target to load the page. Nothing fancy! <16> see ya <15> LLyric: it's certainly old school. rob made it a few years ago afterall. :) <13> meh, my brilliant project manager that puts their only preexisting java resource (me) on .net development, has no determined that i am to be placed as first runner up to recieve .net training, in case somsone else gets sick... <12> heh <12> and what happens if you get the flu? <17> hi <12> hi <13> if I get the flue, nothing happens, if someone else gets the flue, I might get to take a .net course.. <17> i'm looking for some help <12> but didnt you say that you are the only jave resource? <12> Goro|Mails_a - asking a question may help <13> yes. the rest of the people (well, most of them) got an intro course to java a while back <12> ahhh <17> For sure ^^ <13> they code without much understanding ;) <12> hehe <17> i've a little problem in java, i'm trying to refresh a Jpanel...with no succes... <17> i've create a cl*** which extends Canvas, then a add it in my jpanel <17> in theory, this cl*** must handle with the drawing of of tree... its working when i started with a real tree (with values in) <17> but when i start with an empty tree ( so the object is null), after that it refuse to refresh my japnel
Return to
#java or Go to some related
logs:
thunderbird check all folders not working http://*:*@www thebalaabodu.com #AllNiteCafe #MissKitten alecsuta #asm xi hadd jiehu droga #c++ trazzy 550 times sweeter than cane sugar
|
|