|
From: manny k. <man...@gm...> - 2016-11-15 20:31:19
|
Hi Scott, I've mentioned the JTextfield issue in linux lately. It seems ModalInternalFrame can't "focus" any JTextfield properly. It only happens in linux. As a result, I'm not able to change any numbers in the text field in ubuntu. Again the problem doesn't exist for mac or windows os. An example is when using Resupply Tool to edit the sol or the number of population in ModifyTransportItemDialog. In 3.07, we don't have this problem at all in any os because we use JDialog. It could be a simple hack in ModalInternalFrame to fix this or we need to break down this issue to see if it has to do with using JavaFX swing node to house.ModalInternalFrame. Can you take a look at it ? Thanks, Manny On Wed, Jul 1, 2015 at 5:40 PM, Scott Davis <mar...@gm...> wrote: > I created a ModalInternalFrame class that appears to work now. The create > new mission wizard, edit mission dialog, create new transport item wizard, > and the edit transport item dialog all seem to be working as modal internal > frames, pausing the simulation and preventing other UI elements from being > accessed while the modal frame is active. > > If you get a chance, could you test these out in JavaFX to see if they > operate as expected? > > Scott > > On Sat, Jun 27, 2015 at 12:37 PM, manny kung <man...@gm...> wrote: > >> Hi Scott, >> >> The mission/construction wizard (using JInternalFrame) seems to work >> sufficiently well in JavaFX, but NOT with bar/chart generation. >> >> > The problem is that while the user is choosing the options in the >> wizard, if the simulation state changes it could invalidate or change the >> conditions in which the mission, settlement, or resupply mission occurs. >> >> I did notice some fields would turn RED in real-time if a person/a >> material is no longer available. >> >> I'm glad that the codes actually check on them in "real-time" and update >> their availability, not just at the beginning of the clicking the wizard. >> >> As you were alluring to, since javaFX/8 breaks JDialog, as of now, we >> cannot make any pie/bar charts at all under javaFX mode. >> >> I've tried to change the codes in BarChartTab, PieChartTab and >> ColumnSelector (which extends JDialog) to make them compatible with >> JavaFX/8. It's not as easy. It was even harder than the case with making >> the Transport Wizard compatible with JavaFX. >> >> They rely on JDialog's modality's to freeze the sim so that a user can >> choose which column of data for the pie/bar chart. >> >> Since the bar/pie chart is rendered as a tab under the Monitor Tool, >> which is is inside a swing node, I cannot switch it to javaFX Dialog. >> >> With Transport Wizard, I switched successfully from JOption (which >> extends JDialog) to javaFX/8's Dialog. >> >> Anyway, I'll look forward to using that tool that will give >> JInternalFrame modality! >> >> Manny >> >> >> >> >> On Sat, Jun 27, 2015 at 12:01 PM, Scott Davis <mar...@gm...> wrote: >> >>> Fellow mars-simmers, >>> >>> The modal JDialogs for the Create/Edit Mission wizards and the New >>> Settlement/Resupply wizards were changed over to JInternalFrames recently >>> due to problems with JDialogs and JavaFX. >>> >>> These wizards are currently not modal and they need to be. The >>> simulation is not currently pausing while the wizards are displayed >>> either. Their expected behavior is to pause the simulation, let the user >>> complete or cancel the wizard, then unpause the simulation again, all >>> without interacting with other UI controls. >>> >>> The problem is that while the user is choosing the options in the >>> wizard, if the simulation state changes it could invalidate or change the >>> conditions in which the mission, settlement, or resupply mission occurs. >>> >>> Anyway, given that the modal JDialog seems to be a big problem with >>> JavaFX, perhaps we need to try implementing the wizards as modal >>> JInternalFrames. JInternalFrames by default do not support modal >>> behavior. I've come across some developer blogs with various >>> JInternalFrame subclass code that supposedly support modal behaviour, but >>> I'll have to test them out. >>> >>> Let me know if you guys have any ideas on this. >>> >>> Thanks, >>> >>> Scott >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Monitor 25 network devices or servers for free with OpManager! >>> OpManager is web-based network management software that monitors >>> network devices and physical & virtual servers, alerts via email & sms >>> for fault. Monitor 25 devices for free with no restriction. Download now >>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o >>> _______________________________________________ >>> Mars-sim-developers mailing list >>> Mar...@li... >>> https://lists.sourceforge.net/lists/listinfo/mars-sim-developers >>> >>> >> > |