Hi there I would like to allow an existing JFrame (Calculating application) to print out a pre made JFrame (Error Shown = Textbox shows “Warning Wrong number entered”) when I hit the calculating button and there is alphanumeric entered as a calculating value instead of just numeric numbers. I do not want to create a new JFrame within the “Calculating application” JFrame. Is there a way to link 2 JFrames together?
Please do help as I am very new to this programming.
You need to provide a bit better a description of your problem because “print out a pre made JFrame” and “not create a new JFrame” are a bit confusing.
You can use JOptionPane to popup a message dialog (JOptionPane.showConfirmDialog) when your error occurs. The popup should be parented by your JFrame so they are “linked” that way: