I am successfully running the Oracle Java 1.8 compiler and runtime on

64 bit Windows 7 Home premium.  I have two questions.

 

-I want to alter the default display location of one JPopupMenu slightly. I also want it to move with the JFrame by default as usual.

-How do I alter the ongoing, defaulting appearance location of a JPopupMenu from a JMenu while continuing to have

it default linked with a 'wider' JFrame movement action (with the JMenu bar that the JMenu is on?

 

-I have a JTextArea which gains scrolling when its contents is too far to the sides or beneath.  Is there a way to

obtain the JScroll<Component> object reference if it has been drawn, by using a get<...> method?  If so, how?


-What does Component.dispatchEvent(..); precisely do?  Why do I have to send my event object to

actionPerformed to have anything run?

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners