2 つの異なるコンポーネントを同時に表示するのに問題があります。
public class BandViewer
{
public static void main(String[] args)
{
JFrame frame = new JFrame();
frame.setSize(1000, 800);
frame.setTitle("band");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
BandComponent component = new BandComponent();
ConcertBackground component1 = new ConcertBackground();
frame.add(component);
frame.add(component1);
frame.setVisible(true);
}
}
今、このフォーラムで、両方を同時に表示するために何かできることを読みましたが、それがどのように行われたかを理解できませんでした。誰でも助けてもらえますか?私は、一方がもう一方の前にあることを望んでいます。レイヤリングを制御する方法はありますか? 前もって感謝します。