<Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> </TableColumnModel> </Property> <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> <TableHeader reorderingAllowed="true" resizingAllowed="true"/> </Property> </Properties> <Events> <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="tabelaLivrosFiltroMouseClicked"/> </Events> <AuxValues> <AuxValue name="JavaCodeGenerator_AddingCodePost" type="java.lang.String" value="tabelaLivrosFiltro.getColumn(tabelaLivrosFiltro.getColumnName(0)).setPreferredWidth(34); tabelaLivrosFiltro.getColumn(tabelaLivrosFiltro.getColumnName(1)).setPreferredWidth(170); tabelaLivrosFiltro.getColumn(tabelaLivrosFiltro.getColumnName(2)).setPreferredWidth(150); tabelaLivrosFiltro.getColumn(tabelaLivrosFiltro.getColumnName(3)).setPreferredWidth(140);"/> <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTable() /* { @Override public Component prepareRenderer (TableCellRenderer renderer, int rowIndex, int columnIndex){ Component componenet = super.prepareRenderer(renderer, rowIndex, columnIndex); Object value = getModel().getValueAt(rowIndex,columnIndex); System.out.println("value ===" +value); if(columnIndex == 6){ if(value.equals("true")) { componenet.setBackground(Color.RED); componenet.setForeground(Color.GREEN); } if(value.equals("false")){ componenet.setBackground(Color.GREEN); componenet.setForeground(Color.RED); } }else { componenet.setBackground(Color.WHITE); componenet.setForeground(Color.BLACK); } return componenet; } } */ "/> </AuxValues> </Component> </SubComponents> </Container> <Component class="javax.swing.JTextField" name="txtBuscaLivro"> <Events> <EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txtBuscaLivroKeyReleased"/> </Events> </Component> <Component class="javax.swing.JTextField" name="txtAgora"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtAgoraActionPerformed"/> </Events> </Component> <Component class="javax.swing.JTextField" name="txtPrazoEntrega"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtPrazoEntregaActionPerformed"/> </Events> </Component> <Component class="javax.swing.JLabel" name="jLabel4"> <Properties> <Property name="text" type="java.lang.String" value="Data para Devolução:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel6"> <Properties> <Property name="text" type="java.lang.String" value="Data Atual:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel7"> <Properties> <Property name="text" type="java.lang.String" value="Livro ID:"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtTituloSelect"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtTituloSelectActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="brnAddLivro"> <Properties> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/imagens/right_small.png"/> </Property> <Property name="text" type="java.lang.String" value="<html>Adicionar à Lista"/> <Property name="toolTipText" type="java.lang.String" value=""/> <Property name="actionCommand" type="java.lang.String" value="<html>Adicionar à Lista"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="brnAddLivroActionPerformed"/> </Events> <AuxValues> <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="brnAddLivro.setVerticalTextPosition(SwingConstants.BOTTOM); brnAddLivro.setHorizontalTextPosition(SwingConstants.CENTER);"/> </AuxValues> </Component> <Component class="javax.swing.JTextField" name="txtBookId"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> </Component> <Container class="javax.swing.JScrollPane" name="jScrollPane3"> <AuxValues> <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> </AuxValues> <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> <SubComponents> <Component class="javax.swing.JTextArea" name="txtObservacoes"> <Properties> <Property name="columns" type="int" value="20"/> <Property name="rows" type="int" value="5"/> </Properties> </Component> </SubComponents> </Container> <Component class="javax.swing.JLabel" name="jLabel8"> <Properties> <Property name="text" type="java.lang.String" value="Observações:"/> </Properties> </Component> <Component class="javax.swing.JButton" name="btnRemoveBook"> <Properties> <Property name="text" type="java.lang.String" value="Remover Livro da Lista"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnRemoveBookActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="btnSalvar"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Tahoma" size="14" style="1"/> </Property> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/imagens/save_small.png"/> </Property> <Property name="text" type="java.lang.String" value="SALVAR"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnSalvarActionPerformed"/> </Events> </Component> <Component class="javax.swing.JLabel" name="jLabel2"> <Properties> <Property name="text" type="java.lang.String" value="ID de Usuário:"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtId"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtIdActionPerformed"/> </Events> </Component> <Component class="javax.swing.JCheckBox" name="cbOcultarEmprestados"> <Properties> <Property name="text" type="java.lang.String" value="Ocultar Emprestados"/> </Properties> <Events> <EventHandler event="itemStateChanged" listener="java.awt.event.ItemListener" parameters="java.awt.event.ItemEvent" handler="cbOcultarEmprestadosItemStateChanged"/> </Events> </Component> <Component class="javax.swing.JButton" name="jButton5"> <Properties> <Property name="text" type="java.lang.String" value="Mapa"/> </Properties> </Component> <Component class="javax.swing.JButton" name="btnNovo"> <Properties> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Font name="Tahoma" size="14" style="1"/> </Property> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/imagens/new_file_small.png"/> </Property> <Property name="text" type="java.lang.String" value="NOVO"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnNovoActionPerformed"/> </Events> </Component> <Component class="javax.swing.JLabel" name="lblImagem"> <Properties> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> <Image iconType="3" name="/imagens/book_cover.png"/> </Property> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo"> <EtchetBorder bevelType="0"> <Color PropertyName="highlight" blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/> <Color PropertyName="shadow" blue="40" green="40" id="darkGray" palette="1" red="40" type="palette"/> </EtchetBorder> </Border> </Property> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtISBN"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtISBNActionPerformed"/> </Events> </Component> <Component class="javax.swing.JLabel" name="jLabel10"> <Properties> <Property name="text" type="java.lang.String" value="<html>ISBN/<br>ISSN: "/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtStatus"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel11"> <Properties> <Property name="text" type="java.lang.String" value="Status:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel9"> <Properties> <Property name="text" type="java.lang.String" value="Empréstimos Restantes:"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtEmprestimosRestantes"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Color blue="66" green="66" red="66" type="rgb"/> </Property> </Properties> </Component> <Component class="javax.swing.JLabel" name="lblimagemUser"> <Properties> <Property name="horizontalAlignment" type="int" value="0"/> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor" postCode="lblimagemUser.setVerticalTextPosition(SwingConstants.BOTTOM); lblimagemUser.setHorizontalTextPosition(SwingConstants.CENTER);"> <Image iconType="3" name="/imagens/iconfinder_student_309036 (2).png"/> </Property> <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo"> <EtchetBorder bevelType="0"> <Color PropertyName="highlight" blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/> <Color PropertyName="shadow" blue="40" green="40" id="darkGray" palette="1" red="40" type="palette"/> </EtchetBorder> </Border> </Property> </Properties> </Component> <Component class="javax.swing.JButton" name="btnCartao"> <Properties> <Property name="text" type="java.lang.String" value="Imprimir/ Ver Cartão"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnCartaoActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="jButton1"> <Properties> <Property name="text" type="java.lang.String" value="Cadastro"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="jButton13"> <Properties> <Property name="text" type="java.lang.String" value="Cadastro"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton13ActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="btnDetalhes"> <Properties> <Property name="text" type="java.lang.String" value="Detalhes"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnDetalhesActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="btnBuscarLivrosAdvanced"> <Properties> <Property name="text" type="java.lang.String" value="Busca Avançada"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnBuscarLivrosAdvancedActionPerformed"/> </Events> </Component> <Component class="javax.swing.JTextField" name="txtDisponibilidade"> <Properties> <Property name="enabled" type="boolean" value="false"/> <Property name="opaque" type="boolean" value="false"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel23"> <Properties> <Property name="text" type="java.lang.String" value="Título:"/> </Properties> </Component> </SubComponents> </Container> <Container class="javax.swing.JPanel" name="jPanel3"> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> <JTabbedPaneConstraints tabName="Devoluções"> <Property name="tabTitle" type="java.lang.String" value="Devoluções"/> </JTabbedPaneConstraints> </Constraint> </Constraints> <Layout> <DimensionLayout dim="0"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <EmptySpace min="-2" pref="37" max="-2" attributes="0"/> <Component id="jLabel12" min="-2" max="-2" attributes="0"/> </Group> <Component id="jLabel15" alignment="1" min="-2" max="-2" attributes="0"/> </Group> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="1" attributes="0"> <EmptySpace type="unrelated" max="-2" attributes="0"/> <Component id="txtIdEmprest" min="-2" pref="66" max="-2" attributes="0"/> <EmptySpace type="unrelated" max="-2" attributes="0"/> <Component id="jLabel13" min="-2" max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/> <Component id="txtLeitorresponsavel" min="-2" pref="348" max="-2" attributes="0"/> </Group> <Group type="102" attributes="0"> <EmptySpace min="-2" pref="12" max="-2" attributes="0"/> <Component id="txtLivroEmprestado" min="-2" pref="544" max="-2" attributes="0"/> </Group> </Group> </Group> <Group type="102" alignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0"> <EmptySpace min="-2" pref="13" max="-2" attributes="0"/> <Group type="103" groupAlignment="1" attributes="0"> <Component id="jLabel20" min="-2" max="-2" attributes="0"/> <Component id="jLabel19" min="-2" max="-2" attributes="0"/> <Component id="jLabel21" min="-2" max="-2" attributes="0"/> </Group> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <EmptySpace type="unrelated" max="-2" attributes="0"/> <Component id="txtMulta" min="-2" pref="175" max="-2" attributes="0"/> </Group> <Group type="102" alignment="1" attributes="0"> <EmptySpace min="-2" pref="12" max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> <Component id="txtDataParaDevolucao" min="-2" pref="175" max="-2" attributes="0"/> <Component id="StatusEmprestimo" min="-2" pref="175" max="-2" attributes="0"/> </Group> </Group> </Group> </Group> <Group type="102" alignment="1" attributes="0"> <EmptySpace min="-2" pref="18" max="-2" attributes="0"/> <Component id="jLabel17" min="-2" max="-2" attributes="0"/> <EmptySpace type="unrelated" max="-2" attributes="0"/> <Component id="txtDataEmprestimo" min="-2" pref="172" max="-2" attributes="0"/> </Group> </Group> <EmptySpace type="separate" max="-2" attributes="0"/> <Group type="103" groupAlignment="1" attributes="0"> <Group type="102" attributes="0"> <Group type="103" groupAlignment="0" attributes="0"> <Component id="txtFuncionarioQueEmprestou" alignment="1" min="-2" pref="275" max="-2" attributes="0"/> <Component id="jScrollPane7" alignment="1" min="-2" pref="354" max="-2" attributes="0"/> </Group> <EmptySpace type="separate" max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> <Component id="radbtnAddObs" alignment="1" min="-2" max="-2" attributes="0"/> <Group type="102" alignment="1" attributes="0"> <Group type="103" groupAlignment="0" attributes="0"> <Component id="btnDevolver" min="-2" pref="161" max="-2" attributes="0"/> <Component id="btnReemprestar" min="-2" pref="161" max="-2" attributes="0"/> </Group> <EmptySpace max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> <Component id="btnImprimeMulta" min="-2" pref="148" max="-2" attributes="0"/> <Component id="btnDesbloqueiaUsuario" min="-2" max="-2" attributes="0"/> </Group> </Group> </Group> </Group> <Component id="jLabel16" alignment="0" min="-2" max="-2" attributes="0"/> <Component id="jLabel22" alignment="0" min="-2" max="-2" attributes="0"/> </Group> </Group> </Group> <EmptySpace min="-2" pref="231" max="-2" attributes="0"/> <Component id="jButton9" min="-2" max="-2" attributes="0"/> </Group> <Group type="102" attributes="0"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0"> <EmptySpace min="-2" pref="833" max="-2" attributes="0"/> <Component id="radioLista" min="-2" max="-2" attributes="0"/> </Group> <Group type="102" alignment="0" attributes="0"> <EmptySpace max="-2" attributes="0"/> <Component id="jScrollPane6" min="-2" pref="993" max="-2" attributes="0"/> </Group> </Group> <EmptySpace max="32767" attributes="0"/> </Group> </Group> </DimensionLayout> <DimensionLayout dim="1"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <EmptySpace min="-2" pref="10" max="-2" attributes="0"/> <Component id="radioLista" min="-2" max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/> <Component id="jScrollPane6" min="-2" pref="200" max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="txtIdEmprest" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="txtLeitorresponsavel" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jLabel12" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jLabel13" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace min="-2" pref="2" max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> <EmptySpace min="-2" pref="13" max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel15" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="txtLivroEmprestado" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace type="unrelated" pref="18" max="32767" attributes="0"/> <Group type="103" groupAlignment="1" attributes="0"> <Group type="102" alignment="1" attributes="0"> <Component id="radbtnAddObs" min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" pref="3" max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="btnImprimeMulta" alignment="3" min="-2" pref="50" max="-2" attributes="0"/> <Component id="btnDevolver" alignment="3" min="-2" pref="50" max="-2" attributes="0"/> </Group> <EmptySpace max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="btnDesbloqueiaUsuario" alignment="3" min="-2" pref="50" max="-2" attributes="0"/> <Component id="btnReemprestar" alignment="3" min="-2" pref="50" max="-2" attributes="0"/> </Group> <EmptySpace pref="52" max="32767" attributes="0"/> </Group> <Group type="102" alignment="1" attributes="0"> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel16" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jLabel17" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="txtDataEmprestimo" linkSize="1" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="txtFuncionarioQueEmprestou" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace type="unrelated" max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel19" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="txtDataParaDevolucao" linkSize="1" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="jLabel22" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace max="-2" attributes="0"/> <Group type="103" groupAlignment="1" attributes="0"> <Group type="102" attributes="0"> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel20" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="StatusEmprestimo" linkSize="1" alignment="3" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace min="-2" pref="23" max="-2" attributes="0"/> <Group type="103" groupAlignment="3" attributes="0"> <Component id="jLabel21" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="txtMulta" linkSize="1" alignment="3" min="-2" max="-2" attributes="0"/> </Group> </Group> <Component id="jScrollPane7" min="-2" max="-2" attributes="0"/> </Group> <EmptySpace min="-2" pref="35" max="-2" attributes="0"/> </Group> </Group> </Group> <Group type="102" attributes="0"> <Component id="jButton9" min="-2" max="-2" attributes="0"/> <EmptySpace min="0" pref="0" max="32767" attributes="0"/> </Group> </Group> </Group> </Group> </DimensionLayout> </Layout> <SubComponents> <Container class="javax.swing.JScrollPane" name="jScrollPane6"> <AuxValues> <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> </AuxValues> <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> <SubComponents> <Component class="javax.swing.JTable" name="tabelaDevolucoes"> <Properties> <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> <Table columnCount="9" rowCount="0"> <Column editable="false" title="Atraso" type="java.lang.Object"/> <Column editable="false" title="Id do Empréstimo" type="java.lang.Object"/> <Column editable="false" title="Usuário" type="java.lang.Object"/> <Column editable="false" title="Titulo" type="java.lang.Object"/> <Column editable="false" title="Funcionário" type="java.lang.Object"/> <Column editable="false" title="Data do Empréstimo" type="java.lang.Object"/> <Column editable="false" title="Data Agendada de Entrega" type="java.lang.Object"/> <Column editable="true" title="Observações" type="java.lang.Object"/> <Column editable="false" title="Data da Devolução" type="java.lang.Object"/> </Table> </Property> <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> <TableColumnModel selectionModel="0"> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> <Title/> <Editor/> <Renderer/> </Column> </TableColumnModel> </Property> <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> <TableHeader reorderingAllowed="true" resizingAllowed="true"/> </Property> </Properties> <Events> <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="tabelaDevolucoesMouseClicked"/> </Events> <AuxValues> <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTable() { @Override public Component prepareRenderer (TableCellRenderer renderer, int rowIndex, int columnIndex){ Component componenet = super.prepareRenderer(renderer, rowIndex, columnIndex); Object value = getModel().getValueAt(rowIndex,columnIndex); if(columnIndex == 0){ if(value.equals("1 dias restantes") || value.equals("2 dias restantes") || value.equals("3 dias restantes") || value.equals("4 dias restantes") || value.equals("5 dias restantes") || value.equals("6 dias restantes") || value.equals("7 dias restantes") || value.equals("8 dias restantes") || value.equals("9 dias restantes") || value.equals("10 dias restantes") || value.equals("11 dias restantes") || value.equals("12 dias restantes") || value.equals("13 dias restantes") || value.equals("14 dias restantes")) { componenet.setBackground(Color.GREEN); componenet.setForeground(Color.BLACK); } if(value.equals("Vence Hoje")){ // if date equal current date componenet.setBackground(Color.YELLOW); componenet.setForeground(Color.BLACK); } if(value.equals("1 dias de atraso") || value.equals("2 dias de atraso") || value.equals("3 dias de atraso") || value.equals("4 dias de atraso") || value.equals("5 dias de atraso") || value.equals("6 dias de atraso") || value.equals("7 dias de atraso") || value.equals("8 dias de atraso") || value.equals("9 dias de atraso") ){ componenet.setBackground(Color.PINK); componenet.setForeground(Color.BLACK); } if(value.equals("+ de 15 dias de atraso")){ // if date equal current date componenet.setBackground(Color.RED); componenet.setForeground(Color.WHITE); } if(value.equals("Devolvido")){ // if date equal current date componenet.setBackground(Color.WHITE); componenet.setForeground(Color.GRAY); } } else { // componenet.setBackground(Color.RED); // componenet.setForeground(Color.WHITE); } return componenet; } } "/> <AuxValue name="JavaCodeGenerator_InitCodePre" type="java.lang.String" value="tabelaDevolucoes.setDefaultRenderer(Date.class, new DateRenderer());"/> </AuxValues> </Component> </SubComponents> </Container> <Component class="javax.swing.JButton" name="btnDevolver"> <Properties> <Property name="text" type="java.lang.String" value="Devolver"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnDevolverActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="btnReemprestar"> <Properties> <Property name="text" type="java.lang.String" value="reeemprestar"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnReemprestarActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="jButton9"> <Properties> <Property name="text" type="java.lang.String" value="Localização"/> </Properties> </Component> <Component class="javax.swing.JButton" name="btnImprimeMulta"> <Properties> <Property name="text" type="java.lang.String" value="Imprime Multa"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnImprimeMultaActionPerformed"/> </Events> </Component> <Component class="javax.swing.JButton" name="btnDesbloqueiaUsuario"> <Properties> <Property name="text" type="java.lang.String" value="Desbloqueia Usuário"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtIdEmprest"> <Properties> <Property name="editable" type="boolean" value="false"/> </Properties> <Events> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtIdEmprestActionPerformed"/> </Events> </Component> <Component class="javax.swing.JTextField" name="txtLeitorresponsavel"> <Properties> <Property name="editable" type="boolean" value="false"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtLivroEmprestado"> <Properties> <Property name="editable" type="boolean" value="false"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtFuncionarioQueEmprestou"> <Properties> <Property name="editable" type="boolean" value="false"/> <Property name="horizontalAlignment" type="int" value="11"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtDataEmprestimo"> <Properties> <Property name="editable" type="boolean" value="false"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtDataParaDevolucao"> <Properties> <Property name="editable" type="boolean" value="false"/> </Properties> </Component> <Component class="javax.swing.JTextField" name="txtMulta"> </Component> <Component class="javax.swing.JTextField" name="StatusEmprestimo"> <Properties> <Property name="editable" type="boolean" value="false"/> </Properties> </Component> <Container class="javax.swing.JScrollPane" name="jScrollPane7"> <AuxValues> <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> </AuxValues> <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> <SubComponents> <Component class="javax.swing.JTextArea" name="txtObservacoesDevolucao"> <Properties> <Property name="columns" type="int" value="20"/> <Property name="rows" type="int" value="5"/> </Properties> </Component> </SubComponents> </Container> <Component class="javax.swing.JLabel" name="jLabel12"> <Properties> <Property name="text" type="java.lang.String" value="Id do Empréstimo"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel13"> <Properties> <Property name="text" type="java.lang.String" value="Leitor Responsável:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel15"> <Properties> <Property name="text" type="java.lang.String" value="Título:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel16"> <Properties> <Property name="text" type="java.lang.String" value="Funcionário:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel17"> <Properties> <Property name="text" type="java.lang.String" value="Data de Empréstimo:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel19"> <Properties> <Property name="text" type="java.lang.String" value="Data para Devolução:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel20"> <Properties> <Property name="text" type="java.lang.String" value="Status:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel21"> <Properties> <Property name="text" type="java.lang.String" value="Multa:"/> </Properties> </Component> <Component class="javax.swing.JLabel" name="jLabel22"> <Properties> <Property name="text" type="java.lang.String" value="Observações:"/> </Properties> </Component> <Component class="javax.swing.JRadioButton" name="radbtnAddObs"> <Properties> <Property name="text" type="java.lang.String" value="Add Observações como permanente para o Livro"/> </Properties> </Component> <Component class="javax.swing.JRadioButton" name="radioLista"> <Properties> <Property name="text" type="java.lang.String" value="Mostrar Devolvidos"/> </Properties> <Events> <EventHandler event="itemStateChanged" listener="java.awt.event.ItemListener" parameters="java.awt.event.ItemEvent" handler="radioListaItemStateChanged"/> </Events> </Component> </SubComponents> </Container> </SubComponents> </Container> </SubComponents> </Form>