Demo not working != splitButton not working :-)
splitButton = new JSplitButton("Split Button Demo");
splitButton.setPopupMenu(jPopupMenu2);
add(splitButton);
(Note: this is not a recommendation of that particular splitButton implementation, just a reminder that you should be a bit more careful in evaluating the projects you are finding. If you can't for some reason, you might consider using a commercial product, like Synthetica or JIDE, just to name two)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…