Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Useful and useless code comments.
I would do
// We allow scrolling in two directions hScrollBar = new JScrollBar(scrollBar, HORIZONTAL); add(hScrollBar, BorderLayout.SOUTH); vScrollBar = new JScrollBar(JScrollBar.VERTICAL); add(vScrollBar, BorderLayout.EAST); caretX = 0; caretY = 0; caretMemX = null;
There are no comments on this comment yet.
I would do
(I don't have much inspiration in this specific example)