Add transparency slider and change main panel from JPanel to Panel (awt) to avoid conflicts.