@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> good bye
<1> the pointer aritmatic of c / C++ can't be done in a JVM
<2> hy huys
<2> does someone from here has some experience with JTextPane , adding and working with documents
<2> or how to add documents to a jtextpane
<2> All Known Implementing Cl***es:
<2> AbstractDocument, DefaultStyledDocument, HTMLDocument, PlainDocument
<3> morning
<3> how do I use drawOval with double instead of int
<3> or some other Graphics method that i can use to put a point or a circle or anything in x,y coordinate. but x and y are double
<3> it seems that drawOval accepts int only
<3> wake up
<3> :)
<4> I'm guessing it expect whole coordinates.
<3> what do u mean whole?
<2> how can I get the coordinates x,y in a JTextPane ???



<1> of text in it ?
<1> if so I don't think you can as it represents text not space
<2> I really need those, si please can someone help me
<4> rafal - pixels are a discrete quantity. doubles represent continuous quantities. It appears the 'drawOval' method expects discrete pixel boundaries (whole numbers rather than fractional numbers).
<3> I understand
<3> you suggest rounding up my doubles?
<1> nkr, why do you need them, maybe we can see another way round
<4> Well you'll need to round them in some form, up or down depends upon your needs.
<4> That's me outa here... Good luck
<3> ty mate
<1> usually the sort of rounding doesn't matter, however it's easy to defend rounding to the nearest int
<4> See ya calchas - try not to melt.
<1> x = (int)(dx + 0.5);
<1> it's nice here for now :)
<1> see ya
<4> That depends on whether you have visible content in neighbouring pixels that must not be obscured... likewise not leaving gaps may be a requirement.
<4> Toodles
<3> well its a surface reconstruction problem
<3> 2d however
<3> the input files are given in double values. so I presume that precision is required
<3> but I can just round them up so I save on time
<1> precision in the dat work, you will have to map to pixels for diisplay, no choice in that
<1> dat = data
<3> so u suggest to round the numbers x = (int)(dx + 0.5);?
<3> or maybe using a cealing or flor depending if its >0.5 or less
<3> 175.128 291.319
<3> this is a example of x and y
<1> that sum is the easiest way to round to nearest (I think it works both sides of 0)
<3> ok ty, i will try that now
<3> hehe it works
<1> to be honest plain truncation will likely be as good
<3> but it is somewhat out of the expected look :) atleast i recognize what it looks like heh. its nice tough. I'll explain the reasons for rounding
<3> ok i think i'm satisfied with the integer
<3> ty calchas
<3> i'll get back to the important stuff :)
<1> np
<3> calchas, for storing the ovals into an array, the array should be a Graphics one right?
<1> I doubt it
<3> vector is a better choice?
<3> i want to be able to clear the panel from the ovals only, not all of the drawings that are there. so when I create the ovals, i ***ign them to a vector(or array). and when I want to clear the screen of the ovals, i just empty the vector.
<3> good approach or there is something better?
<1> I'd keep the non ovals on a buffered image, then draw ovals from the vector
<3> ok i will try different things out. good to have an idea
<3> ty again
<1> np
<5> good morning!
<6> morning Clackwell
<3> morning everyone
<3> is there a draw method for drawing a vector. a line with an arrow. give me any kind of tip :)
<7> rafal: A line with an arrow is just 3 lines.
<3> nevermind, i found it, sun tought of that too
<7> rafal: Drawing a line is easy, graphics.drawLine.
<7> What did you find?
<3> i know how to draw lines
<3> there are line styles
<7> Strokes?
<3> and i can select a join style
<3> yep
<3> hi-5
<3> heh
<7> Ah. Cool.



<3> ty anyways rickety :)
<7> I wrote a Turtle cl*** for stuff like that, similar to LOGO.
<7> Maybe I should have implemented it as a custom stroke.
<2> How can I add a image to a menuitem ?
<7> nkr: Look at JMenuItem's constructors.
<2> thx...
<2> how can I get the x,y coordinates in JTextPane (I searched in api and didn't figured out how to)
<7> x,y coordinates of what?
<2> of where te cursor is positioned
<2> like in eclipse (in status bar says 32,15 example)
<2> I'm working to a advanced text editor, with syntax highlight, etc
<2> and I have 3 more weeks to finish it
<2> gotta go to java cl***..cya in 100 min
<7> You can get the text from the pane, and count newlines until your caret position.
<7> I imagine there are better ways, but that one works.
<3> is it possible to have more than one Graphics2D object, and use them as layers. So g1 would be layer of points, and g2 will be another with lines. so when i clear g1, i am left only with the lines
<7> That's images.
<3> ok, i will check them out. ty
<3> i should create Image objects? how do I asign properties to them, they only have few simple methods. I use them as layers? the documentation is quite vague
<7> What properties?
<3> nm the properties, i dont understand how to use the images as layers.
<3> like u suggested
<3> maybe i didnt explain good
<7> You can draw stuff to an image.
<7> You can draw images to graphics contexts.
<7> That's all you need.
<3> and i can have multiple images
<3> cool
<3> also just to check, u are talking about the Image cl***?
<7> Yes.
<7> You could use BufferedImage as an implementation.
<3> ty
<7> Others might be more efficient, depending on what exactly you're doing. The images tutorial is pretty comprehensive, last time I looked.
<3> ok ty
<3> bye thanx for the help
<3> i'll come later again
<8> hi all
<8> have you experienced with big messages to send to a JMS queue ( MQ Server ) ?
<9> how big?
<9> and what broker are you using?
<8> 4 mb...
<7> rob80: I don't know, but I think you misunderstood "broker".
<8> what do you mean with broker?
<8> sender cl***?
<10> cvxcvxcxcv]
<7> Malteras: I'm not interested in your DCC, kindly bugger off.
<10> IMa li ovde neko da bi pricao sa mnom ili mi objasnio kako ovo funkcionise ukratko posto sam novi?
<7> no polska
<10> Odakle si ti?
<10> rickety
<10> ?
<7> Mmm, Polish trout.
<11> helo
<10> dsasdasd
<10> vcbcvb
<12> it seems someone has suffered from a blow on the head or something.
<10> helo
<13> #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax
<14> #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax
<15> #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax #zonax
<16> aight
<16> i got a List that contains 10 other Lists
<16> each List contains a set of numbers as strings
<16> i want to filter out the common numbers
<16> best way?
<16> http://pastebin.ca/47967 <- something like that but it's not working :/
<16> anyone bored here? come on
<17> how much is the java developer certification exam?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

#teens
#skype
#AllNiteCafe
#MissKitten
#php
prozacpimp
#AllNiteCafe
capecodm49
#AllNiteCafe
#chatzone



Home  |  disclaimer  |  contact  |  submit quotes