private JInternalFrame _startJFXImpuestosCRUD() { frame = new JInternalFrame("Administrador de impuestos"); final JFXPanel fxPanel = new JFXPanel(); frame.setClosable(true); frame.add(fxPanel); frame.setVisible(true); Herramientas.panelCatalogo(frame); Principal.getEscritorio().getPanelEscritorio().add(frame); frame.setSize(706, 518); frame.setPreferredSize(new Dimension(706, 518)); frame.setResizable(true); frame.setVisible(true); Herramientas.centrarVentana(frame); Herramientas.iconificable(frame); frame.toFront(); Platform.runLater( new Runnable() { @Override public void run() { Scene scene = null; try { scene = initImpuestosCRUD(); scene.setFill(null); fxPanel.setScene(scene); } catch (IOException e) { } } }); return frame; }
/** Builds the main customer Frame */ private void createCustomerInternalFrame() { { jInternalFrameCustomerDetails = new JInternalFrame("Details"); jInternalFrameCustomerDetails.setLayout(new BorderLayout()); buildJPanelCustomerDetails(customer); jInternalFrameCustomerDetails.getContentPane().add(jPanelCustomerDetails, BorderLayout.WEST); jInternalFrameCustomerDetails.setVisible(true); jInternalFrameCustomerDetails.setBounds(1, 1, 497, 410); jInternalFrameCustomerDetails.setPreferredSize(new java.awt.Dimension(497, 410)); } }
private void agregarAPanel(JInternalFrame internal, boolean maximizar) { if (!this.desktopPane.isAncestorOf(internal)) { this.desktopPane.add(internal); internal.setVisible(true); try { internal.setMinimumSize(minimo); internal.setPreferredSize(minimo); // internal.setMaximumSize(minimo); internal.setMaximum(maximizar); } catch (PropertyVetoException ex) { Logger.getLogger(principal.class.getName()).log(Level.SEVERE, null, ex); } } }
/** Builds the bottom Addresses Frame */ private void createAddressesInternalFrame() { { jPanelAddresses = new JPanel(); jPanelAddresses.setLayout(new BorderLayout()); { jScrollPaneAddresses = new JScrollPane(); { refillAddressView(); } jPanelAddresses.add(jScrollPaneAddresses, BorderLayout.CENTER); jScrollPaneAddresses.setPreferredSize(new java.awt.Dimension(830, 226)); jScrollPaneAddresses.setBorder( new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null)); jScrollPaneAddresses.setAutoscrolls(true); } { final JPanel buttonPanel = new JPanel(); jPanelAddresses.add(buttonPanel, BorderLayout.SOUTH); buttonPanel.setPreferredSize(new java.awt.Dimension(830, 35)); { jButtonAddressNew = new JButton(); buttonPanel.add(jButtonAddressNew); jButtonAddressNew.setText("Nieuw"); jButtonAddressNew.setToolTipText("Nieuw adres"); enableAddressButton(); jButtonAddressNew.addActionListener( new ActionListener() { public void actionPerformed(final ActionEvent evt) { new JDialogAddress(customer, null, CRUDOperationEnum.NEW); refillAddressView(); } }); } } jInternalFrameCustomerAddresses = new JInternalFrame("Adressen"); jInternalFrameCustomerAddresses.add(jPanelAddresses); jPanelAddresses.setPreferredSize(new java.awt.Dimension(830, 236)); jInternalFrameCustomerAddresses.setVisible(true); jInternalFrameCustomerAddresses.setBounds(1, 427, 840, 227); jInternalFrameCustomerAddresses.setPreferredSize(new java.awt.Dimension(840, 227)); } }
/** Builds the right contacts frame */ private void createContactsInternalFrame() { { jPanelCustomerContacts = new JPanel(); jPanelCustomerContacts.setLayout(new BorderLayout()); { jScrollPaneContacts = new JScrollPane(); { refillContactsView(); } jPanelCustomerContacts.add(jScrollPaneContacts, BorderLayout.CENTER); jScrollPaneContacts.setPreferredSize(new java.awt.Dimension(415, 314)); jScrollPaneContacts.getHorizontalScrollBar().setAutoscrolls(true); jScrollPaneContacts.getVerticalScrollBar().setAutoscrolls(true); jScrollPaneContacts.setAutoscrolls(true); jScrollPaneContacts.setBorder( new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null)); } { final JPanel buttonPanel = new JPanel(); jPanelCustomerContacts.add(buttonPanel, BorderLayout.SOUTH); { jButtonContactNew = new JButton("Nieuw"); buttonPanel.add(jButtonContactNew); jButtonContactNew.setToolTipText("Nieuw contact"); enableContactButton(); jButtonContactNew.addActionListener( new ActionListener() { public void actionPerformed(final ActionEvent evt) { new JDialogContact(customer, null, CRUDOperationEnum.NEW); refillContactsView(); } }); } } jInternalFrameCustomerContacts = new JInternalFrame("Contacten"); jInternalFrameCustomerContacts.add(jPanelCustomerContacts); jInternalFrameCustomerContacts.setVisible(true); jInternalFrameCustomerContacts.setBounds(388, 1, 443, 339); jInternalFrameCustomerContacts.setPreferredSize(new java.awt.Dimension(443, 339)); } }