I want to create a jframe in which there will be several question buttons. when we press a specific button the answer will be shown. again if i press the button the answer will be close. again if we press 2nd button 2nd answer will be shown. whole code will be in different class and in main method will just run the file. Please help me to solve this problem