This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
remiX's profile picture

Java Notifications

Started by remiX, 11 April 2013 - 06:07 PM
remiX #1
Posted 11 April 2013 - 08:07 PM
Hey guys,

I'm trying to implement notifications for my Chat program in Java but I just can't get it to work.

I have found some nice custom packages, but I have NO idea how to import them properly.
Here's Twinkle. The Demo of Twinkle works properly but I just can't get it to package properly.
I can't find anywhere the installation protocol for Twinkle, but there is a Getting started with Twinkle page. I followed this page, importing it how I thought was write but it errored with NullPointer, if I remember correctly.

Simple example of a nice popup:


is there anyone that can help me with this? I'm using NetBeans by the way.

Thanks!
Spongy141 #2
Posted 15 April 2013 - 07:15 PM
Try studying the source of some other programs (that are coded in Java) that have notifications, if I knew Java I would help more, but I am only learning it atm, so can't.
Smiley43210 #3
Posted 15 April 2013 - 09:47 PM
What exactly do you mean? You can't import ch.swingfx.twinkle;? Or is there some other problem? Like extracting vs packaging packages into a jar? I don't use NetBeans, so I'm not too sure what the problem is. I'll look at NetBeans, though.