Added some swing demos and fixed some warnings