« first day (1380 days earlier)      last day (3575 days later) » 

4:05 AM
hi
18
A: Create a custom event in Java

GlassGhost NOTE: this doesn't work with if your ant build.xml sets target for 1.6 or newer. You simply "throw" an event from 1 object to another. Here's how to do it with 2 classes as the question originally asked: 5 Things needed on throwing side code: //import of java.util.event import java.util....

if any one can git clone and ant build that then maybe update it to work with jdk 1.6 or newer that would be great
 
 
6 hours later…
10:42 AM
Anyone in the room ?
 
11:07 AM
Hey @ItachiUchiha, just got home, how's you?
 
fiddling with css and js
 
Fun times :) I'm taking my time on SO, on my road to 2k-er ;)
 
cool
 
 
3 hours later…
2:00 PM
Good morning, Java!
 
Good morning
 
We are all agreeing on it being "morning"? :)
 
It's 22:02 here. :P
 
16:02 representing!
 
Yep, it's morning.
 
2:08 PM
It seems that The Jedi is on a break for the weekends.
 
2:30 PM
@Michael heya
 
2:55 PM
Hey @ItachiUchiha, how are you?
 
What's everyone doing?
 
Hi @Michael I am good !
@Unihedron just ordered my dinner
 
@ItachiUchiha What is for dinner? :o
 
@Michael few of the members in this room want you to choose @Unihedron as an owner as he is the most active member of the room and he will help to keep the room clean !
 
I thought the consent was to appoint @Kylar, but eh.
 
3:09 PM
Since, you are not available all the time, and we don't have any other owner coming here, it is very difficult to keep a tag on everyone
@Kylar can also be appointed, but you are the most active member of the room !
@Michael we also have a starred message for you
yesterday, by Unihedron
Star this message if you believe we should elect a person active in this room to be a Room Owner.
 
Hello ladies!
Anyone good with swing?
 
Ok
 
ay @ben
 
I have a very ridiculous problem
JFrame paints old component for a second & disappears after doing frame.setVisible(true). Even though all components were removed before set visible.
0
Q: Java screenshot capture - JFrame paints old component for a second & disappears even though all components were removed & repainted

Ben BeriBefore you read, this will be informative: Java JFrame won't show up after using .setVisible(true) after being invisible Hello I am working on a library API that let's you capture an area of the screen, and it returns you a class that contains the ByteArrayInputStream and utility methods like cr...

This is what i mean (select video option) gyazo.com/d2f0432ada37842966b42dfd87be4240
 
Ben Beri make its left to be -10,000 then set visible true, then move it to left 0 after a second
 
3:14 PM
Ben, the last line should be "Thanks in advance", not advice ;)
 
I have a SuperStore type in app. Only 3 instances. Using spring. Need currentSuperStore to be web session level, but want to cache the 3 stores, so singleton. I guess should use 2 beans? 2 classes too? SuperStore and SuperStoreCurrent ?
 
Good idea.
For the Java room RO election, in the spirit of democracy, everyone is allowed to vote for anyone. Simply post your name (Or the name of who you are electing) to start a banner. The post with the most stars by Saturday may or may not be appointed as a RO by Michael.
 
In Swing timers, actionPerformed being executed every time the counter hits the timer speed count? because last time I used swing timers iirc it didn't execute actionPerformed
nvm goti t to work
 
Lol, nice.
 
ye i forgot .start() XD
 
3:29 PM
Sounds like the time I forgot to .flush() when attempting graphics.
 
3:52 PM
@tgkprog what do u mean by native c++ code
 
4:24 PM
@Unihedron @Michael
 
Nah, you're already an owner. We're only asking for someone to be elected because among RO of Java we have only you left who remains active. See the discussion here: chat.stackoverflow.com/transcript/139/2014/7/31/18-20
 
@Unihedron Ah, makes sense.
 
You don't have to revoke your ownership. :)
2 days ago, by Kylar
By all means, this isn't a kingdom
2 days ago, by Kylar
If anything, it's a benevolent dictatorship, with @Michael running it ;)
 
I elect @Kylar then. He has been around for a long time. But then again, he is a native Canadian.
3
In Java Chat, problems solve you!
 
;P
For the election, star this message to . (Hint: Voting for Kylar is better.)
6
 
5:29 PM
does anyone here provides code review? I have finished my dissertation project and Im looking for an experienced java programmer to review and provide feedbacks only
 
its not small to post it there
it needs someone to read an article
I dont mind paying
I have finished it but I want someone to provide feedback how can I improve it
 
5:41 PM
hi, anyone here have idea on how much faster would jackson (json) be compared to simplexml?
worth the change?
we have 1+M xml files that are pretty much only save format for an eclipse editor, simplexml is getting pretty slow
 
6:40 PM
I elect @Unihedron. Though he is young, yet he is mature in java. He spends almost all his time in this room. He keeps the room alive !
 
6:55 PM
I also want to vote for @Kylar ;)
 
No experience with simplexml, sorry.
Thanks for the kind words, really appreciate it.
 
no prob, just tried to find some benchmarks by google that would have both 2, but didnt.
btw if anyone of you are going to make a java library then pls give it name, and do not call it "simple"
 
7:25 PM
lol true!
 
8:25 PM
Is it possible to listen to the input and error streams of something at the same time?
 
 
1 hour later…
9:31 PM
@AnttiHaapala There is less "bloat" involved with JSON, so a JSON data stream might be smaller.
However, XML is a more scalable solution, given its namespace and schema technology.
Also, you can query an XML document with XPath. JSON has no such equivalent.
XML also has a technology called XSLT, which can transform XML documents into other XML documents.
Overall, XML is more established and formalized, while JSON more nimble and malleable.
 
user868935
Hi all. Is there any real benefit to incorporate Scala with Java?
 
Scala code is more precise, which eliminates code bloat.
 
user868935
That's too broad of a statement for me to consider though
 
It sounds like you've made up your mind.
 
user868935
10:13 PM
Not yet. I would need examples of where it can be used. Tried googling, but they didn't give any definitive examples.
 
user3148594
10:46 PM
@mic
 
user3148594
wwhy do you need scala spicyWeenie
 
user3148594
I have used it for Hadoop project
 
In Scala, you're supposed to make all of your variables "final".
Only under rare circumstances should a variable be mutable.
 
I'm getting some really buggy output using file.lastModified()
in most cases it's returning 0.
 
@VoidWhisperer What does file.exists() return?
 
10:51 PM
nvm. It was as permissions issue
 
11:36 PM
@Michael I know all this, as none of it matters, I am just interested in knowing if anyone has done performance testing, the xml, json is just an alternative to using ObjectOutputStream here
 

« first day (1380 days earlier)      last day (3575 days later) »