1. Exception In Inititalizer stackoverflow.comI have no idea why this is happening, but one day it was fine. Now, I try to run the code and I get an |
2. JButton: getLocationOnScreen() throws Exception java-forums.orgHi all, i'd like to show a context menu below an "Add" button in a JFrame when that "Add" button is clicked. To determine the location for the context menu I thought calling the getLocationOnScreen() method on "Add" button would give me its location so I can calculate the position to display the context menu. However, although the Button (the whole ... |