|
Bugzilla – Bug 769 |
Fiji window no longer closes child windows and it doesn't remember its position |
Last modified: 2014-06-15 09:17:09 CDT |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
| Fiji window no longer closes child windows and it doesn't remember its position | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
|||||
Created attachment 158 addHi Mark, I want to thank you again for all your help. I downloaded the new software and it does indeed kill B&C and remember its last postion. Very nice... However I'm still not quite there. I didn't want to bother you with my code since I thought it was my problem to get it to work and I shouldn't be taking your time and energy. I added the WindowsManager.addWindow but that isn't enough. I got a bit of a laugh that it isn't just my problem. I tried to add my site, which I also can't get to fly, and that too stays around once Fiji has been killed. (Maybe this should be the case, but my gut feeling is that it should go away.) I thought the key might be IJ.register(class) but that too isn't enough. I updated source forge so at least WindowManager.addWindow is there. IJ.register isn't on source forge. I thought it might be PlugInDialog so I tried that but the Fix Imports didn't know what to do with it - and neither do I. I use NetBeans which is very nice at doing all the dialogs. I make a tiny part for the interface and do the rest with NetBeans. public class Read_CD implements PlugIn { @Override public void run(String arg) { ReadCdStudies dlg = new ReadCdStudies(null, false); dlg.setVisible(true); } } The main part is public class ReadCdStudies extends javax.swing.JDialog implements MouseListener { static final long serialVersionUID = ChoosePetCt.serialVersionUID; static final int TblPatName = 0; static final int TblStudy = 1; static final int TblDate = 2; static final int TblSeries = 3; static final int TblPatID = 4; static final int numFails = 5; // 3 is boarderline, try 5 /** * Creates new form ReadCdStudies * @param parent * @param modal */ public ReadCdStudies(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); WindowManager.addWindow(parent); init(); } @SuppressWarnings("unchecked") private void init() { IJ.register(Read_CD.class); jPrefer = Preferences.userNodeForPackage(ReadCdStudies.class); jPrefer = jPrefer.node("biplugins"); jCurrCD = jPrefer.getInt("current CD", 0); ...... For the IJ.register I tried both ReadCdStudies.class as well as the parent Read_CD.class. Neither is enough to make it die. I now have an account on Fiji called ilan but I still can't add my site as only 1 text box is active, and the password is grayed out. Thanks again, Ilan> I may not be able to publish my site on the Fiji list. Ilan, would you mind creating a new ticket for that? It makes it much, much easier on this side to keep track of open issues and to find the correct one quickly when one has news to share. It also correctly reflects how quickly we fix bugs (which you cannot see when people start adding new problems in the comment section of an already-addressed bug).