Enumeration enums = components.elements();
while (enums.hasMoreElements()) {
Component cmp = (Component) enums.nextElement();
cmp.paintInternal(g);
}
I will collect many beautiful Java code segments, but only in one line each time. Hope it may help! Happy Coding!
沒有留言:
張貼留言