basically i must be misunderstanding the spec This is a stateless session bean The grow legs requires a new

When using SOAP, it's usually bad form to start with Java code and then generate WSDLs from it.
Define your WSDL and schema first, then the stubs, then the java web hosting code.

I already have my wsdl, I was trying to create the java code using wsdl2java but ran into problems
That's why I was trying this way
As you probably notices I'm a newbie to JAVA in general

WSDL2Java - you need to specify to it where you want to generate the stubs.

let me try again

Among other things. I don't recall all the command line options but basically you run that, generate your stubs, and only muck with the WhateverServiceClassHere_Impl.java file.
Everything else you leave alone.

do you know any simple hello world tutorial for that? most of the tutorial I found where either outdated or either for different webservers

omg my pizza is cold

need to take a break this project is frying my brain. no amount of carbs or caffiene help.
need to take a break this project is frying my brain. no amount of carbs or caffiene help.

~tell Rasimu about pm.

Rasimu, pm is something that you should do to 'bots, like Drone and me, but not to other users without asking first. See: http://javachannel.net/wiki/pmwiki.php/FAQ/Pm

That was cold, man.

Hi can anyone tell me if it's possible to get all events from a JFileChooser? I need to know if the user selects 'home', parent folder, root, dbl-clicks a file, etc.
uHi can anyone tell me if it's possible to get all events from a JFileChooser? I need to know if the user selects 'home', parent folder, root, dbl-clicks a file, etc./u

hello

*

sup joed

should have been in bed. redoing a Syslogd.

joed:

of course it is. implement all the appropriate Listener classes

whaley!

It is OSS, so lack of sleep is good.

~joed++

joed has a karma level of 65, _^_

good evening

Fanook, any idea chich? I've tried Component, container, action listeners…

~Hodapp++

Changing one's own karma is not permitted.
hodapp has a karma level of -1, Hodapp

chich=which

how do i change the jre used by netbeans 5.5?

Which servlet container are you using?

~tell Hodapp about Hodapp++

Hodapp, Changing one's own karma is not permitted.
Hodapp, hodapp has a karma level of -2, Hodapp

what?

create the dialog, and figure out what listeners you need on the JDialog (I assume you're doing a JFileChooser.showDialog() or similar).
_^_: don't do that
~Hodapp++

hodapp has a karma level of -1, Fanook

nvrmind

What ?

yay!

You're happy about -1 karma ?
well more power to ya I suppose

_^_, come to ##swing for a second

_^_: you decremented his karma by doing that. don't

Sorry but I don't know what you mean

I don't do that, sorry

Fanook, no I am using JFileChooser+FileSystemView where the FSV has a list of files from another machine; therefore when user selects parent folder in chooser I need to know to update the FSV

you don't #swing that way?

how about a quickie behind the bleechers after gym _^_?

What gym ?
I see no gym

lets say there was in fact a gym
how about then?

..

I recall what was my problem while trying to use wsdl2java, no matter what I tried I kept on get the "Content is not allowed in prolog" message

If there was in fact a gym, I might consider it
but that does not actually mean there IS a gym

_^_ = r0bby

joed, why did you kick me?

!op
I don't think I am, sorry

if you were bearded_wonder? You asked for a break?

LMAO

agrajag
where have I heard that name
hmm.. something about a galaxy

Spend less time on IRC, more on code.

i think you generally use the dialog from the JFileChooser to actually do anything (i really don't know for sure, haven't really used this component). Hence, you should be able to listen to the dialog and respond accordingly

very close to arajag in Hitchhiker's Guide to the Galaxy

Yes that's the one

actually, Mostly Harmless, the 5th book in the trilogy

ah, that's a hilarious quintilogy

joed, actually i came in here to take a break and talk about my java project. I've been coding for almost 11 hours nonstop.

_^_: it's a trilogy. a 5-part trilogy, but still a trilogy

g'day. say i have an Animal and Dog class, Dog extends Animal. In the Dog constructor, i call super(). say both classes implement an eat() method. in the Animal's constructor, how do i call Animal's eat() and not Dog's?

Agrajag-: super.eat()

Fanook, I think the problem is al 'internal events' (within the component) are hidden

super.eat() from with the Animal's constructor? right ok

I always forget the details

i don't think that's correct

?

Agrajag-: Wick is currently in Jail.

That means that your XML is wrong.

no idea what you're on about

Are you using an XML host editor, or are you just eyeballing the WSDL and XSD?

I validate it wih altova xmlspy. it is valid

Are you using valid schema elements?

Agrajag-: try it. see what happens.

I created it using the xml editor, it must be valid

i did. cannot find symbol.

cannot find symbol? That means that the superclass doesn't implement eat !

Agrajag-: then you've defined it incorrectly in Animal. pastebin your code

Anyway. Time to cook dinner. See ya.

dinner at 9pm? sheesh

C. C's constructor does super(), so B constructor gets called, and it's B's eat() that i want to call from B's constructor (not A's, a doesn't have an eat(), but if it did, i wouldn't want to call that either)

heh

Agrajag-: then you just do eat()

unless C implements eat(), that is
then you're screwed

~Fanook ++

I guess the factoid 'be fanook' might be appropriate:

C does implement eat()
that's what im trying to say

_^_: he's in B's c'tor

Paisano!

Agrajag-: when in C's c'tor, eat will call C.eat, super.eat will call B.eat. when in B's c'tor, eat will call B.eat

i tried just doing eat() in B's constructor, but that call's C's eat()

Zn4p lives in Guadalajara.

oh, right. duh

I'm going to sic him your way.

ok.. i will test again if that's the case

hey pr3d4t0r

Hej.

who's that?

isn't there an invokevirtual directive or something, that tells the VM to not call the most derived classs' method ?

Zn4p.

oh, is he new to the channel or what?

Some dude from Sweden who's got a nice site in Mexico.

Agrajag-: if you want to call B.eat, you need to do it from C's constructor, as that's the only way you can tell the compiler not to use the overridden version

He speaks pretty nice Spanish too.

ah. right, ok. i'll just rename B's method then, i don't want to call it from C's constructor

oh!
pr3d4t0r, what is he doin' here? Sweden is nice

It is cold and rainy.

but they have nice girls too :P

So they do in Mexico.

WE do :P

He's running away from the cold.

oh

Tapatías culonas.

he chosed a nice place then

Anyway, I'll send him your way.

pr3d4t0r, certaintly :P

I know, my wife is from there.

Do you know of any gossip sites in .mx that will have video?
I want to watch the videos from my brother's wedding yesterday.

uhm.. esmas.com probably?

Nope.

is he from GDL? if he's you can look at any "sociales" newspaper section

No, from Mexico.
The wedding was in Tepeji del Río.
I tried esmas.com (Televisa) but I don't know sites for TVAzteca or TeleMundo

oh

Someone told me earlier that there's video on the 'net but I can't find it.
And my retard brother never updates his site.

http://www.tvazteca.com.mx/espectaculos/

Nada
Gracias
Je, je, je… por error me encontré a Yuridia.

dónde?

¿Qué onda con esa chava? ¿Es hija de Yuri?
TVAzteca.

couldn't he send you the photos?

He's in Cancún, honeymoon.
And his g/f made such a big deal that I know I can find video somewhere.

is he some sort of mexican celebrity?

Ah, found one.
He's a movie director.
His wife is an actress.

do anything up here?

Fucking video is tiny.
Not yet.
If you watch Spanish TV you can catch her in a couple of sitcoms, I think. I don't watch TV, so I don't know what she does for work, actually.

w00t

http://www.lamujermovie.com/
thats because barbara mori is a hawtttie

that doesn't sound like java . . .

anyways.

Hej.
F00ken whiner.

pr3d4t0r, te late Vanessa Mae?

She's chingona.

silly boy. pr3d4t0r === java

~tell _^_ about STFU.

_^_, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded

~tell _^_ about STFU.

pr3d4t0r …

~tell _^_ about STFU

_^_, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded

~tell _^_ about STFU

pr3d4t0r …

~tell _^_ about STFU

pr3d4t0r …

~tell _^_ about STFU

pr3d4t0r …

Haha.

Your 'bot is b0rk'd.
~literal STFU

reply(http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=warning | http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded)

wow

no it has a tel patch.

It's not displaying the first one.
joed–

joed has a karma level of 64, pr3d4t0r

right, and then waits a whle.

~tell _^_ about STFU.

_^_, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=ded

What's up?

_^_ suffice to say you suck.

no

~tell _^_ about STFU

_^_, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=warning

that does not suffice

Ah, there it is.

I need to be told at least 30 times

can we just, like .. eradicate?
ahh there we go

pr3d4t0r, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=lolcode_r hah nice one

about time to hit the sack, we put a flood tell fix in from ernimril.
~pr3d4t0r++

pr3d4t0r has a karma level of 357, joed

so anyway
what is the closest class to arraylist but with a string key rather than an int key

Map
either HashMap or LinkedHashMap

~javadoc java.util.HashMap

Gracenotes, please see java.util.HashMap: http://java.sun.com/javase/6/docs/api/java/util/HashMap.html

^^

thx again
you guys are teh best

we know

us++

we are…two wild and crazy guys!

Ping…
http://www.theserverside.com/news/thread.tss?thread_id=46581
^^^

pong

can't open the page pr3d4t0r

Well…
I just resigned.
^_^

how did the boss take it?

svm_invictvs++

svm_invictvs has a karma level of 13, pr3d4t0r

. . .
It works fine.

nope.

Oh, this time it didn't load. Weird.
They must be updating the code
~lolcode

pr3d4t0r, I have no idea what lolcode is.

Ah, dinner.
See you.

freenode is pissing me off, they klined my home machine for no apparent reason

why doesn't the Polygon class have a constructor that takes an array of Point objects
that would be too simple

DCTW, did some prick admin promote you?

I just tryed to connect and it just let me in then k-lined me hah.

and the constructor that is supplied is (int[], int[], length) couldnt they attain the length from the supplied arrays

DCTW, it's off topic here. you may want to take it to #freenode.

im there

here is another one, why doesn't Integer have a method that tells you if its even or odd?

its just pissing me off they are slow

DCTW, if you were honestly following the rules of freenode and feel that you were unfairly k-lined, you may also want to talk to someone at the network level. most channel level admins are moronic pions.

he hasn't read it yet.

why did you resign?

I work 60+ hours a week.

ick

whats wrong with that?
overworked??

depends on the job
and the person
I work 60 hours a week and I hate it on a job that I don't like, if it were exactly what I wanted to do I'd love it

60+ hours a week on a mismanaged project.

I've seen people do almost nothing for 60 hours a week except show up and drink coffee
and tell jokes all day long
get paid like $13 an hour for it

ive taken over those peoples jobs
well we used to have some ppl at my work
that were like that

Where, when one guy makes a fix to 1 bug, and 5 more pop up because everything is a dirty hack.
And…
I just ran WC on my parts of the code.

~catalyst

bearded_oneder, I have no idea what catalyst is.

hello there

okay this may be a new one for people…. how can i go about changing folder permissions using java?… ive already tried Runtime.getRuntime.exec("sudo chown newUser /home/guy/folder");
…. doesn't work

I just WC'd the code.

hu?

is their a way to get a mysql driver "org.gjt.mm.mysql.Driver" to connect to localhost via a unix socket

YangYin, was your JVM launched under a user account with sufficient priveleges to change owner?

sure. use localhost in your connection string

odd that it doesn't work… even the runtime exe of chown… i ls -l and its still under the same user

I just wc'd the project code.
I wrote 65% of it.
of three engineers, I wrote 64% of the lines of code on a project that's approximately 135k lines of code
THe other two engineers wrote, each wrote the remaining percentage which is like 18% each or so.

merp

And, earlier today, I had my source control privileges revoked.
Because somebody accused me of sabotoge.

sounds like they're screwed

lol

And, they tell me, that I'm unproductive.

sounds like a great placeto work

That I dont' focus.
And i got a job offer for another job witha slightly higher salary.
I've been micromanaged
and my personal integrity has come into question.
There's not project requirements at all.
And now the tests are failing.
So…

damnit
figured out the problem…

I goofed up one checkin/checkout procedure and reverted some code accidentally.

time to write that nasty resignation letter where you burn some bridges

my sudoers is still requireing a password

no, I was very professional.

last job i left, i gave a 1 month notice… only to leave the same day and not return

A fellow engineer stormed out of the lab and called me "a fucking idiot"
Then reported me to HR for being unprofesional to him.

sounds like a great place to work for…
really great

YangYin, what was it?

he needed to supply a password for the sudo command

\Because I told him, "Look, every time you fix one bug, five more pop up."

ah

"I dont' know what you do, but your'e not being produtive."

i think the problem is that "application must work" isn't in the requirements

lol

i can't claim that one for myself. it's the latest wtf.com

svm_invictvs, so did you leave completely or do you still have to work out 2 weeks?

I gave 3 weeks 3 days.

anyone here familiar with ejb3 transactions?

One of which is consumed by a vacation I had planned months ago.

i'd bet you're gonna be escorted off the property before that

They told me, "If you leave now your integrity is in jeopardy."

on the plus side, if they've revoked your source control access, they shouldn't expect you to actually be able to work

he'll be gone before he has a chance
svm_invictvs, this happened yesterday right?
and youre due back there this morning right?

? i thought i did fix the sudoers file to make it so i dont have to give password when i chown

YangYin, yes, fanook filled me in

oh
well i figured it out now
sudoers file is a little tough to figure out but i got it

i think you can pass the password as an argument in the worst case

nope
tried to link commands
didn't work
and the people at #linux thought i was trying to do something conspicuous it was kinda funny

anyone familiar with ejb3 transactions?

99 methods of code in the specs. 99 methods of code. hacked one down. pass it around. 99 methods of code.
OOPS! 98* LOL … tired.

my experience is more like 99, hack one down, 100

rawbdor, "The remaining 10% of the code accounts for the other 90% of the development time."?

heh always
course for me, i tend to find the first 10% takes 90% of the time
thte next 85% takes 2%, adn the last 5% takes 8%

rawbdor, http://en.wikipedia.org/wiki/Ninety-ninety_rule
joke

rawbdor, I've worked with ejb3 transactions…

do you have a spare moment?

rawbdor, sure

let me pastebin this file =]

is this channel also for servlets ?

you can try

i am starting with learning servlets what's the best servlet services container i can use

apache tomcat

and what is was is it also a container ?

it's lightweight

tomcat is the best for beginners with servlets

true

it's one of the most widely used so there will also be a lot of support for it
http://pastebin.ca/674418

thanks i will install tomcat and what is "was" btw ?

was?

yeah was
some stuff from ibm

basically, i must be misunderstanding the spec. This is a stateless session bean. The grow legs requires a new transaction, so I assume my container (jboss) creates one… or crated one already. 50% of the time it reaches forbidden, and is still able to execute code there. Any idea why?

like websphere application server?

yeah i think that's it

blah
forget it!

it is also a servlet container ?

rawbdor, why are you expecting an EJBException?

is it common practice to pass parameters 4 methods deep?

afaik, the transaction is spanned for all methods invoked in your first ejb method

amitev, I don't think that's the case…
rawbdor, if you were to call em.merge() in forbidden(…) you'd get a PersistenceException

let me try that

rawbdor, but you don't call em.merge(t) in growLegs() either; in the end, nothing is persisted/merged

it is persisted and merged. I can tell because I'm staring at the database
I do not get any persistence exception
i added the merge and i still get no exceptions

Hey there

OK, so maybe amitev is correct, and I'm not

anyone here used chainsaw already?

so how would i go about to force some type of transaction error?

why should he get an exception?

I'm trying to set up an UDPReceiver with it but when I send events to it it won't listen
and the receiver's "active" flag is set to false - how do I activate it?

im basically trying to make a proof-of-concept where if I have a transaction and wander into a method *not* permissive of transactions, it fails on me. That's what I'm trying to show

if TransactionAttributeType is NEVER, but is ignored if a transaction is in process, then he wouldn't

What sites would you recommend to register a domain name?

the spec says "NEVER" will not ignore a transaction already created. It will fail

afaik the transaction attribute of the root method is used

so how do i go about forcing an error?

throw an exception ?

no i need to prove the container does it for you
as its supposed to
the spec says the container is supposed to throw exceptions if execution wanders into a NEVER method when a transaction is in scope
when does it do that? only between beans?

i think so

what if i added a method onto my entity bean that was scoped never? would that generate the failure of the stateless tried to call it?
that didn't seem to do anything either… and my entity had a method : @TransactionAttribute(TransactionAttributeType.NEVER) public void never() {setNumLegs(getNumLegs()-1);}

rawbdor, have you tried putting forbidden into another SLSB?
it appears that jboss ignores the TransactionAttributeType if you call from within another type
I can provide some links, if you want to pursue it further

yes links will be much appreciated

How can I map a function to the elements of an array in java? like pythons map() to lists

You can't.
At least not without sufficient pain to make it not worth the effort.

rawbdor, http://groups.google.com/group/mugshot/msg/9a7773a162f29bde or http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043164 (on the JBoss Seam list) are probably the most relevant one's I've found so far… mostly complaints, but some discussion in the second

to bad, thanks

It is indeed too bad.
It might be fixed in Java 7.

i've read somewhere that the spec guys plan to add something like .net delegates in java 6
java 7

thank you very much. using a second bean worked

rawbdor, glad it worked!

now i get to make 10-12 examples

rawbdor, sounds fun

something for jboss tools ?

Hello, what's wrong with my code?
http://eugeneciurana.com/pastebin/pastebin.php?show=3850
I can't add an action to the menu in the part between those "//" … "//"!

Have you read the Sun tutorial on Actions?

No, I don't want to read it. What did I do wrong?

is there any way to get the bytes how much an empty instance of a class takes up?

Stormbreaker, what's the _exact_ error you're getting? 8-)

Severity and Description Path Resource Location Creation Time Id
ActionEvent cannot be resolved to a type SLF SLF.java line 17 1188373501691 72
That's the first…
Severity and Description Path Resource Location Creation Time Id
The type new AbstractAction(){} must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent) SLF SLF.java line 16 1188373501691 70

O_o

That's the second…!

or how much ram the application is currently taking up in the jvm

Stormbreaker, _don't_ paste more than two lines to the channel.

ok

Now, why do you think it's telling you it can't implement the abstract method actionPerformed?

Because… Because…? o0

~tell Stormbreaker about star imports

Stormbreaker, star imports is http://en.wikibooks.org/wiki/Java_Programming/StarImports

Ah, I know! The component needs an ActionListener registered, am I right?

No, carry on reading.

Ah..

?

I imported AbstractAction and Action, but it still gives me errors.
Got no ActionListener.

Repaste your code?
Because after importing AbstractAction, it all worked rosy for e.
*me

http://eugeneciurana.com/pastebin/pastebin.php?show=3851
There you go ^^

Did you even read the link javabot gave you? :s
Do you even know how to use Google? The Java API? I take it not.

*Reads again*

Err, when I say I imported AbstractAction, I lied and mistyped, it's something else that you're not importing correctly. *

is there any way to get the bytes how much an empty instance of a class takes up or how much ram the application is currently taking up in the jvm?

I think they're a bit different from .NET delegates.
In some ways better, in some ways worse. Broadly similar though.

Stormbreaker, Google "ActionEvent".

(Depending on exactly which implementation they go for it could either be a lot of ways worse or a number of ways better. )

Now it works for me, thank you.

Hi all!
Does anyone knows how of a good example on how to use javax.net.ssl in a client to a web service?

It happened today.
I think I'm behind you timewise.

for example, can I simple do a "HttpsConnection scon = (HttpsConnection) url.openConnection ();" ??

myMap, and I need to make a copy of this. How do I go about doing this?

yeah, beta3 is out
I'll probably upgrade in our project on Monday after we've completed the current sprint
oh, wrong channel again
ane hot!
anyway, wicket 1.3.0-beta3 is out! Get yours while they're hot!

help anybody?

what determines whether a javax.naming.directory.Attribute turns out as 'ordered' after querying an LDAP?
(I'm getting an 'unordered' Attribute that should be ordered, and wondering where to fix that)

iterate and copy everything?

dangertools, tried that but it doesn't seem to work…doing some tests

hm anyone knows how to filter *.jar files (added to the build path) inside eclipse's project explorer? in eclipse 3.3 (was easy in the previous version.)

same way : package explorer view, click the arrow, filters, and pattern *.jar….what's diffrent ?
and same thing in project explorer….click upper right arrow

class Client { private final SubClient = SubClient.newInstance(); } abstract class SubClient { static SubClient newInstance() { return Class.forName(properties.get("SubClient"); } }

only has preset patterns. and *.jar isn't one of these. and I can't seem to find how to add a pattern to that list.

exceptions etc omitted for clarity
would you consider that a case of dependency injection?
i.e. when Client actually creates the object, but using a static factory method that relies on a (perhaps external) property set to find the concrete type?

have you done this on 3.3 ?

I'm on 3.3

hey guys

I don't see "customize view, but directly "filters" from within the view…
Eclipse SDK
3.3.0
I20070625-1500

if I pass a class to a function, and the function alters the class, will this be reflected in the original class that you passed?

depends how you alter the class

hmm

blindside, are you sure you're not referring to objects (instances of classes)?

hm in the java (not j2ee) perspective in the PACKAGE explorer I get the same thing as you do. but j2ee's project explorer doesn't have that.

blindside, in that case the answer is yes

yeah im refering to objects

by using methods on it yes…but changing reference no

created with "new"
what if I altered a public variable
directly

blindside, void manipulate(Person person) { person.setName("adam smith"); }
blindside, that will alter the original Person object, yes

i see
what about person.Name = "adam smith";

then I think no

hmm
thanks

the answer is yes

well it's very strange. guess I'll give up that handy project explorer to only use the Navigator which also has that feature.

all changes to the object will be seen in the original object

but it's plain stupid.

Is it possible to connect to an MS SQL database with the CrEme CDC JVM? I tried installing the MS JDBC driver but it needs java.util.logging which CrEme doesn't have ):

because they're, duh, the same

Are you sure, cause inside the objet person.Name = "adam smith"; will change reference to String Objets Name, which is a reference

Don't have j2ee view or perspective

i would bet my life on it
but go ahead, try it out

^^ let's proove me I'm wrong

ok, well thanks anyway

any of you guys developing hosting with java support apps on OSX?

~OSX

chnarr, I have no idea what OSX is.

point taken

Oh you mean Mas OS X
So what's the problem, assuming it's a linux like system
~tell Skaag about anyone

Skaag, Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.

I write to develop an application for mobile phones using Java
I want to
(bugger…)
I noticed the Wireless Toolkit is packaged for Windows and Linux exclusively
http://java.sun.com/products/sjwtoolkit/download-2_5_1.html

you know OS X is a linux like system…so try it…go ahead

giving it a try, it's downloading
I hope that .bin file will open fine

guess what, I just coded 3 JPanels for displaying tile based maps for games, a square one, a hexagon one and a diamond shaped one (like civII)
I'm still a long ways from displaying actual maps though
as it takes time to come up with images

you mean it takes time to create them?

yup

with a tool like gimp/photoshop?

with any tool
graphics takes time
art that is

true
are you planning to create a free game? :-)

It possible to use a class with a toString() method in place of a string, but not possible to cast it to a string right?

not at the moment, only free game making tools

even without the toString() method, but I mean use in the sense of have it supply a useful value

I'm going to post these on my web site soon
as CPL

nice

I'd like to make some image editors to go with them

Skaag, did you think about emulating ?

one for hex/diamond/square
then to make map editors would also be cool

emulating what? A virtualized Linux?

yep
or look for .bin utils for OS X

it actually worked

aaahaa

that's nice ;-)
The plan is to create an app that uses the phone's bluetooth or wifi capabilities to communicate information with each other automatically

A sort of exams cheater …

hey that's a nice idea ;-)
but no.
ok check this out ;-)
java.io.FileNotFoundException: /users/skaag/workspace/wtk2.5.1/wtklib/Mac/ktools.properties (No such file or directory)
I just coped the Linux directory to Mac, and now it works ;-)
uI just coped the Linux directory to Mac, and now it works ;-) /u
what's wrong with my typing today… must be the 0.5L beer I had last night..!

hi

is 0.5L a lot ?
as beer is strong.?

for me I guess it is enough..? :-)

don't fond excuses

I just had a Whienstephan
if that's how it's written

wtf

isn't it Weihenstephan?

something like that

If a pint of beer is still affecting you after a night sleep, you should probably see a doctor about a liver transplant ,)

I don't have a hangover

if i have a class that has only a member from String class, and i want to override equals and hashcode, for hashcode i return the string hashcode, and for equals (i return false for null and for object of different class) i return string.equalsIgnoreCase(string), this is not correct right?
because i can have 2 object equals but with different hashcode

depends your hashcode impl

if the member is String foo i return foo.hashCode()

hey guys, what is the pointer equivalent in java, I mean

i have to convert foo to lowercase or uppercase and then hashcode that string, i think

there is none

so don't do this, rather implement your hashCode, regardless to case

is there a difference between int myInt; and int myInt = new Integer();?

one is an object, the other is a primitive type?

yes there is, theorically, String foo = "some text"….then foo can be considered as the pointer

that is a reference.

ok, so to help c++ coders to undersdent, reference is to java what pointer is to c

i c
pun intended
:P

but it's bad to do this…just forget your pointers and co. background is better

ok, the line between a reference and non reference seems blurry
since theres no specific syntax to denote one..
hmm

just that you can't manipulate references arebitrarily

well all is referenced in java

what you mean r00t

right

you mean modifying the data containers directly??

you can't, like, add sometihing to a reference to make it point elsewhere, as you can with a pointer

when you do MyObj foo = new MyObj(some args) is like a maaloc

I am a bit confused by the numbers i am getting back from MemoryPoolMXBean, none of the memory usage values correspond to what my OS is telling me the jvm is using. How am i to use these values to be away of when my application approaches a certain memory usage limit?

when you doo foo=null; it's like a free()!

hey can someone join me in #applet

Erm. Not funny

foo2

tjats mpt a referemce
*thats not a reference
sorry keyboard is screwy

sorry…replace primitive by object instances

i see
but you can make a copy of a reference
by
myObject = new myObject(oldObject);
right

~enter

Blafasel, enter is not punctuation. Please don't press return until you've finished typing your question, it's annoying to see multiple lines for one question, and hard to follow.

woops
s/myObject/SomethingElse

copy of instance is proper…well right or also implement clone() method

sorry Ill stop using RETURN as punctuation

I don't care how you call it, just do it. Thank you

Hi I've setup an event so that when a user right clicks inside a JList a popup menu comes up at the mouses x and y coordinates…however where the popup comes visible is NOT where I right clicked … any ideas?

you get the wrong coordinates or your way of positioning the popup doesn't work.

Check if what you use are client coordinates

~next

Another satisfied customer. Next!

this is 3 lines so please don't stress:
if(evt.getButton() == evt.BUTTON3) {
RightPopup.setVisible(true);
RightPopup.setLocation(evt.getX(), evt.getY());

4 lines, but…

sorry :P

five now!

The same answer applies.

~snippets

Snippets too often lack vital information. Create a test case instead.

~test case

Provide complete, compilable Java SOURCE CODE that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)

what do you mean by client coordinates?

write a tiny program that demonstrates opening a popup at coordinates of your choice.
then dump it into one of the pastebins

~tell Bacta about javadoc MouseListener.getX()

Bacta, I don't know of any documentation for MouseListener.getX()

~pastebin

http://pastebin.stonekeep.com

Hmpf
Read the javadoc of this method

Woo! Hoo!

MouseInfo.getPointerInfo().getLocation().x; in AWT
seems to work

..

case of wrong coordinates, and a clutch solution. horrible.

Great. You do understand what you did wrong, right?

~next

Another satisfied customer. Next!

I mostly got my map panels working for displaying game tile maps

No

for (square/hex/diamond) shapes

I like that in IT everything is "mostly" working.

heh

aha. it's important to feel like making progress for me. else i lose interest even in my own little pet projects. i hope you'll be better self motivated than me.

I am if I'm making progress

didn't you read the javadoc for the Mouselistener.getX() method, as I told you?

Take special care when you encounter that magic word that made Einstein famous

Eureka?

its funny I tried this kind of thing back 7 years ago and it took me a month to get http://javaref.sourceforge.net/rpg.zip working, I just did 3 types of JPanels in one day, though I don't have a map viewer working yet for any of them

Wrong guy. That one was 2000+ years earlier. But I see that you aren't interested in the solution

that was Archimedes

http://yro.slashdot.org/article.pl?sid=07/08/29/0227251&from=rss

It was obviously not taking into account absolute coordinates

I mean the JPanels are the basic tools needed to plot the maps, the map plotting logic is yet to be coded

setLocation for the JPopupMenu is. .getX() from the MouseEvent doesn't return those, exactly. Quite easy to see by reading the docs of both methods (that makes about 10 lines of text, if you include the signature etc.)

can't he just make himself in a new release version.

wow that stil runs after 7 years
actually 5 years
I need to look for a hand held I guess

Hello
http://eugeneciurana.com/pastebin/pastebin.php?show=3855
Somehow resizing the button doesn't really work?

du wirst dich ueber kurz oder lang mit layout management in java auseinandersetzen muessen, nuetzt alles nichts.
~layout

Clackwell, layout managers is http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html If the layout managers that come with the jdk dont satisfy you, have a look at FormLayout, TableLayout, PercentLayout or
HTMLLayout (ask me about each of those to learn more). Book chapter at http://javafaq.mine.nu/lookup?290

I don't speag German, I'm sorry o.o,

wahaha. ok. you won't get around reading up on layout management in java/swing. see javabot's information on that.

why the _HELL_ did you just speak german?
anyways, Clackwell, have a good morning

This is an English speaking channel.

Clackwell is a well respected member.
i believe

I WANT TO BELIEVE!

Can anyone provided me with some information on how to use javax.net.ssl.HttpsConnection?

did you check the javadoc page?
~javadoc javax.net.HttpsConnection(*)

I don't know of any documentation for javax.net.HttpsConnection(*)

~javadoc javax.net.ssl.HttpsConnection(*)

I don't know of any documentation for javax.net.ssl.HttpsConnection(*)

I assume the javadoc plugin is still broken?

nah

~javadoc Object.toString()

Blafasel, please see java.lang.Object.toString(): http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()

Okay, fine

here's the java 6 javadoc page: http://java.sun.com/javase/6/docs/api/javax/net/ssl/HttpsURLConnection.html

~javadoc HttpsURLConnection

I don't know of any documentation for HttpsURLConnection

Hmm..

although it should be noted, that it is abstract and must be subclassed.
this might help you: http://commons.apache.org/httpclient/
good luck.

join ##java

:O

Been a while since I used irc
How are people doing?
I was wondering if anybody knew of any good custom SWT layouts?

is there any way to instantiate a type parameter?

{ … new Bar() … } doesn't work, but is there any workaround?

clazz)

then use that clazz later for the constructor. That (or variations of that) is the only way.

I see, thanks

What you can do is have nice static methods that work out what the type is based on the class you pass in, saves you repeating yourself 100 times which Java likes to make you do.

clazz) { return clazz.newInstance(); }

yes, sometimes you almost forget who is the human and who is the computer

I've seen a few good proposals on how to remove half the redundancy, but I doubt they'll find their way into Java 7
Anybody here use SWT much?
Guess not

morning

Howdy jottinger

morning joe

~tell JimmyA about swt

JimmyA, swt is the Standard Widget Toolkit - see http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/main.html

~tell JimmyA about azureus

JimmyA, azureus is the other SWT app.

swt kinda sucks

It's really good in places, and horrible in others (layouts being one).
Thanks for that Cackwell, I'm working on a Java game http://sourceforge.net/projects/freelords and was trying to find a layout that lets you assign proportions for growth, e.g. this widget should grow into 20% and this should grow into
100%.

there is a nice article anbout why swt is a tricky choice compared to swing, but i have trouble locating at it the moment. maybe its url should be squeezed into that swt factoid, too.
and you use…swt?

Yup, for some time. I'm not necessarily convinced it was a better idea than Swing (especially for a game) but it seemed to work faster and look a little better.

faster…

Want to try and avoid writing a custom Layout if I can, or maybe I'll just settle for widgets either being fixed sized or growing as large as the can with no inbetween.

we'll probably keep hearing that for another decade.

Not trying to start a flamewar

agreed about writing a custom layout.
me neither, just venting about the resistance of myths and misunderstandings in the java world.

Well I did both a SWT and a Swing POC early on, and for the pop up dialogs SWT was faster, not sure about in general use. Maybe it was just until JIT kicked in.

yeah, the consequences of naive performance testing ;(
but your stuff is open source, i am sure someone in the community will write a swing port

you're welcome to naive or not, it's the first thing that the user experiences. I do much prefer native widgets, but I hear swing has done a lot of work in that area lately.

"Advocates from both sides consider their opponents to be of questionable parentage." - http://www.hacknot.info/hacknot/action/showEntry?eid=74

just for the record.. swt and Qt (KDE) make a horrible experience
no native support there

for whome?

user

That sounds like something Hitler would say!

that was the article, might want to read it

i wished swt would use Qt bindings… but it does not unfortunately

with java 6 swing works really good and fast. See big Swing app like Limewire running in java 6. Just huge app like eclipse need SWT.

swing gets points for its smalltalk heritage, swt gets points for being an IBM creation for those who can't figure out Swing

how about netbeans? IDEA?

and Eclipse doesn't need SWT either

I thougt swing was originally developed by IBM as well?

it uses SWT out of momentum, not need
no

no to what?

Not feeling the SWT love here , I've done plenty of stuff in Swing, but back in the days when it really did look pretty horrid.

no, IBM didn't create Swing

razzledazzle

yeah, I understand, anyhow I see eclipse a bit more responsive than netbeans. Just a bit, even with visual editors and many plugins.

Swing was what AWT was supposed to be, but it took too long to write
yes, that means SWT is better. /sarcasm

definitive proof that swt is faster than swing.
case closed.
is that a beard? you are a terrorist. please hand yourself over to the police.
case closed.

yeah, it's faster, but nobody will notice it with new computers

"My pinto outran a porsche on the road one day! Therefore, pintos are faster than porsche."
moore's law is dead, BTW
dual-core CPUs are killing it

drawing conclusions is so easy once you disregard accuracy.

well, accuracy's overrated.
just ask the US government. Or the US media.

What happened to my lack of flamewar?

damn you, swt fanboy!
there, happy?

this isn't flamery, it's mockery.

just marketing.. we could have 300-core processors right now.

we could have 1 billion core processors.
just scientific and practical progress prevented it so far.

I think we've driven off the Ruby Rails somewhere along the line here

but that doesn't change the assertion that moore's law is dead
ruby's pretty nice.

i could have green hair.

Jostein:

thus, moore's law is alive and well!

why the heck put your damn barking dog into the garden at 1 pm? i don't understand some people. grr.

But as they say, the free ride is over.
2 cats here, hard to type with one constantly running over my keyboard

and then there is the neighbour with teh constantly open windows who smokes a lot. of course that smoke gets into this place…very sexy when sitting in the kitchen, eating. or when having fun with your gf in the bedroom ;
give it a push. we all need a push from time to time.

But she's so cute just like SWT. I'll settle for GridLayout for now, use XML files to describe layout (but not code), and changing the UI would be very easy in future

there are layout managers that allow to describe a layout in xml already. maybe you can use one of those.

Am using XLayout for SWT, but it has a few shortcommings

(not that i think xml helps any, or describing a horrible layout management with gridlayout or one of the other layout horror managers in java in something else than code. it's still the same, counter intuitive layout horror.)
sometimes it seems that people talking about xml in this area have identified the wrong problem. to me the layout logic of the included layout managers is what is broken, not wether i describe their use with code or xml or plain text of another format.

I would have to disagree there, as long as the XML is just used to lay out, and all the listeners / fine tuning is done in code. In the same way you can look at xHTML and get a general idea of the layout.
I suppose there's always the Mig Layout, sounds like what you'd suggest.

but the layout mechanisms in xhtml are more intuitive even to me, as opposed to the layout mechanisms offered by the various layout managers included in the jdk.
to me it is most important that the layout mechanism is easy to understand and use. if i have to ask "how do i realize this and that layout" chances are that the layout manager isn't any good.-

etc.

and you keep getting these requests in here.
maybe we do.

You seen the GridBagLayout flash animation?

no, link me please

~gbl

Clackwell, gridbaglayout is a very powerful layout manager that allows precise control of component resizing. Tutorial http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html. a great helper class to
set the constraints can be found here: http://papernapkin.org/examples/GBConstraints.java

~gblfun

Clackwell, I have no idea what gblfun is.

~gridbaglayout

Clackwell, gridbaglayout is a very powerful layout manager that allows precise control of component resizing. Tutorial http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html. a great helper class to
set the constraints can be found here: http://papernapkin.org/examples/GBConstraints.java

sigh

http://madbean.com/anim/totallygridbag/

yep, that's the one

Bah.
Reading the javadocs helps.

of course, you'll have the purists at your throat, which will shout that a) xhtml is total crap, and b) table based layout management logic is teh evil
they'll rather use a more complicated but "cleaner" tool i guess. good thing there's choice.

All layout management logic is teh evil Better not tell them I use a Mac either (though I admit I'm always stuck in the Java dark ages as a result).

~evil

only morons use the word "evil" to refer programming practices, IDEs, etc.

*grin*

Eh, javabot never used PowerJ with managed code then.

I think people would stop using that factoid if they saw some of my code.

i'd say that's extremely probable

Not at all. We still use evil on conjunction with individuals
s/on/in/

Ha

~PowerJ

JimmyA, I have no idea what PowerJ is.

~wlfshmn++

wlfshmn has a karma level of 7, DRMacIver

Yup, he never has
Anybody have any non UI stuff to talk about?

see you later

Guinea pigs are neither pigs, nor from Guinea. Discuss

But they still are tasty
have fun

What does "extension class" mean ?
~extension class

I guess the factoid 'changing runtime classpath' might be appropriate:
chnarr, changing runtime classpath is http://forum.java.sun.com/thread.jsp?forum=32&thread=300557&message=1961099

thats not what I expect
The tool supports JAX-RPC complex types (bean classes), extension classes, enumeration classes, arrays and Holder classes.
so what does it mean here ?
(from Axis User guide)

~tell chnarr about extend

chnarr, I guess the factoid 'extends evil' might be appropriate:
chnarr, extends evil is an article by Allen Holub who tries to present arguments for the keyword 'extends' being of no value. Unfortunately, he does a poor job of presenting the facts http://www.tmorris.net/pubs/extends-not-evil/

oh crap.
~tell chnarr about inheritance

chnarr, inheritance is http://java.sun.com/docs/books/tutorial/java/concepts/inheritance.html , http://java.sun.com/docs/books/tutorial/java/javaOO/subclass.html and http://java.sun.com/docs/books/jls/third_edition/html/names.html#104101

lol

there ya go

inheritance is what your children get when you die
leave it at that

not for OOP

Well , ok, but I think Apache Axis is not very explicit, should be explained a little further, because, I know that the actually extension class should also be a support type, recrsivly, which is not told…
*recursivly
does somebody agree with this ?

Hmm.. After all that "Is IntelliJ worth the money" talk: Any opinions on the MyEclipse stuff? I mean: Are they really enhancing the platform enough to charge their fee?

i assume extension class means a class that extends a super class am I right?

right
lets assume this
or maybe the superclass which is extended by… :p

I've found Eclipse with a few plugins fine for my work. We're the developers of the no 1 web software for retirement investments in Australia.
Granted we bought out all the competition.

I'm an Eclipse user myself, so I'm not asking about "Does Eclipse work", but more about: Did anyone pay for the MyEclipse edition and can share some experiences

ahh, and nope. We thought about getting my eclipse, but between what 3.3 web developer offers and Red Hat's upcomming JBoss plugin replacement we decided there wasn't a need. Still, considering I never used it can't say for certain, sorry.

I personally like IDEA, but lately it's been acting up for me; I think a plugin i installed is breaking it.

I don't like it, all these tools makes you too IDE dependent, so I prefer using some advanced scripting tools, like ant tasks, and even better maven through plugins
Do you know about Maven ?
~maven

chnarr, maven is a build tool similar to ant based on the idea of a project object model (POM). See http://maven.apache.org/ for details
chnarr, maven is a build tool similar to ant based on the idea of a project object model (POM). See a href="http://maven.apache.org/"http://maven.apache.org//a for details

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Leave a Comment

You must be logged in to post a comment.


Blog Tags:

Similar posts: