I have incorporated a TextArea in the panel of my JFrame that also has a Canvas and numerous button. When I attempt to access the JMenuItems from the menu bar, the options are hidden under the TextArea. I've tried adding the JMenuBar as the last segment of code, but that seems to have no affect. If you run the code below and try to access the File menu, you'll see what I mean. SOMEONE PLEASE HELP!! import java.awt.event.*; import java.io.*; import java.awt.Window; import java.awt.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import java.lang.*;
You've mixed an AWT component in with your swing components. Try not to do this. The peer component that is created for your textArea will be on top of any swing components that you have. You should use either all swing or all awt.