| |
| |
| |
|
Page: 1 2 3
Comments:
<0> rightt ? <1> yes, that would work <0> okay <0> so i got my String constructor.. <0> but i dunno how to cr8 the other one :/ <1> are you using eclipse <1> or an IDE <0> using DR JAVA <0> l33t stuff <0> lol
<1> hmm.. don't know it <0> :) <1> do you understand the difference between a method and a constructor? <0> yes <0> ur right tis a method <0> i should write <1> I think you just need to throw the Exception into a try catch <1> checking is done in the catch <0> ..? <1> try { /* code */ } catch (EmptyQueueException eqe) { /* exception handler */ } <1> then when you want to raise the exception, to a throw new EmptyQueueException(params) <0> so lets say <0> i can start with EmptyQueueException() { super(); } <1> yes, you might want to make it public, but if you're in the same package, that would work <2> i'd suggest you read this, http://java.sun.com/docs/books/tutorial/essential/exceptions/creating.html <0> tx <3> Guys if you were going to build a Chess board in Swing, how would you go about it? <3> I'm new to Swing, so I was just wondering what the best approach would be <4> Matt_: read sun java tutorial i would, first the language basics, then the relevant parts of the standard api, then swing. <5> if you ask about Swing part of it I's suggest building board widget first, let's say let it draw images in relevant places and have size of 8xtile size <5> Matt_: but Clackwell's suggestion is of course before that <3> hehe yes, I've spent this term learning Java <3> is board widget in the api? <4> yes, there is java.games.chess.Board <5> yes of course, Swing has boards for various popular games in standard library <4> kidding... <3> lol <3> damn don't get my hopes up :-P <3> could I build a series of JButtons? <3> and they act as the tiles? <5> better use single panel and draw on it by yourself <4> depends on what your requirements are. <4> i don't see clicking on squares as the optimal user interface for making moves, per se. <3> well, I need Chess pieces on these buttons too <5> with labels you'll get into issues with layouts, borders and whatnot
<3> labels? <5> Matt_: nothing prevents you from drawing in the same place twice <4> beats drag & drop though, i guess. <3> ok, sorry I'm learning this on the go <6> i want to write an application that plays mp3 files, what is the best library to use ? <5> Matt_: labels, buttons doesn't matter -- I wouldn't suggest this way <3> gilead: what would you suggest? <5> I said above <3> a single panel? <5> yep <3> panel is in the api doc? <5> check <4> Blutch: no clue, never heard of *the* standard mp3 lib. sun offers mp3 decoding support for jmf or so, but installing that as part of your app? might be tricky. <3> http://www.cs.kent.ac.uk/java/api/java/awt/Panel.html <3> :-D <5> Matt_: swing != awt <4> learn difference between swing and awt, and pick one. <6> Clackwell: yes i found this jmf, but i can't get any documentation/tutorial other than the API <3> oh damn yeh I didn't see that <3> i'm using swing <3> JPanel? <3> http://www.cs.kent.ac.uk/java/api/javax/swing/JPanel.html <4> Blutch: is this going to be a fun project? chances are that your java program will eat 20, 30 mb of ram or more while executing. consider wether that is acceptable. <5> best use java.sun.com downloads instead of any other site but yes, that's the panel we talk about <6> yes it's supposed to be "fun", no problem if it eats 30 mb ram <3> Blutch, I have an example of a Java sound music player with sources if you want it? <6> Matt_: why not <3> one sec let me locate it <4> Blutch: try any of the libs that makes sense to you, i'd say. <4> "ONJava.com -- Extend JavaSound to Play MP3, Ogg Vorbis, and More", sounds like a start <3> hey Blutch accept DCC? <6> it should work <3> sending file now <6> if i'm lucky today <5> hm, let's be nice for once ;) <6> thx for the link Clackwell, i'll give it a try :) <5> Matt_: example of simple board: http://cvs.sourceforge.net/viewcvs.py/jdstar/jdstar/jdstar/gui/swing/SwingBoard.java?rev=1.2&view=markup <6> Matt_: seems i'm unlucky today! <3> ok there's a zip file called simplesound.zip on there <3> in the link <3> :-) <3> Thanks gilead
Return to
#java or Go to some related
logs:
#linux xampp timestamp quran im deutsch #linux Sun gdm-90w10 24'' driver script of amlet reonkadena nude #MissKitten #MissKitten #AllNiteCafe
|
|