The issue is that you declare popup as a class variable and then create a local instance of popup in the init method. The result is that the class level popup is never set to anything and causes an NPE when you try to use it in checkPopup. Changing the line: JPopupMenu popup = new JPopupMenu() to popup = new JPopupMenu() should fix the issue.
The issue is that you declare popup as a class variable and then create a local instance of popup in the init method. The result is that the class level popup is never set to anything and causes an NPE when you try to use it in checkPopup. Changing the line: JPopupMenu popup = new JPopupMenu(); to popup = new JPopupMenu(); should fix the issue.
Thanks! It worked! Although now I get this error not really an error more like a warning sign: imgur.Com/27wI5 – weka Feb 2 at 5:13.
I had a similar problem with selection manipulation for JList. When you are determining the index of what is being selected, the reported index from getMinSelectionIndex() and related calls will sometimes report 0 as negative numbers (may have something to do with deltas, but I am admitted unsure). 93 if (!lsm.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.