java - Control order in Swing -
so i'm creating little java program netbeans' gui builder. have whole bunch of labels (that happen icons) on screen - , sent same exact location. how make sure label got sent last, displays ontop on pile of labels? make sure mousepress event comes top label, not 1 of ones underneath?
this 3rd day learning java, excuse me if it's dumb question :d
use cardlayout setlayout. can stack things on another.
let's assume using jpanel every "card" of cardlayout, on place jlabel. need make jpanel transparent:
jpanel.setopaque(false);
i believe jlabel transparent.
Comments
Post a Comment