Category Archives: learning by example

Java example topics

Scrolling a JPopupMenu (Scrollable JPopupMenu)

I’ve just come across a need for a JPopupMenu with lots of menu items and found out scrolling support if not built on? Shock! Horror! After using Google to look for options and finding everything over-engineered or doing some weird … Continue reading

Posted in Java, learning by example | Leave a comment

Scheduling a recurring event (Timers)

So you need an event to occur at regular intervals without doing your own time checks and forcing your application to operate sequentially? You have a number of options open to you but my favourites are the Timer classes, either … Continue reading

Posted in Java, learning by example | Tagged , , | Leave a comment