no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@324 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 19 years ago
parent d55b01b897
commit 61d539269a

@ -254,19 +254,32 @@ public class AvisosPanel extends JPanel
add( scp );
JPanel contentPanel = new JPanel();
scp.setViewportView( contentPanel );
contentPanel.setLayout( new BoxLayout( contentPanel, BoxLayout.Y_AXIS ) );
// contentPanel.setLayout( new BoxLayout( contentPanel, BoxLayout.Y_AXIS ) );
// contentPanel.setLayout( new FlowLayout() );
GridBagLayout gridbag = new GridBagLayout();
contentPanel.setLayout( gridbag );
constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 );
constraints.fill = GridBagConstraints.BOTH;
constraints.gridwidth = GridBagConstraints.REMAINDER;
constraints.weightx = 1;
constraints.gridheight = 1;
constraints.weighty = 0;
if( avisosEmpresa.length > 0 )
{
gridbag.setConstraints( empresaPanel, constraints );
contentPanel.add( empresaPanel );
}
if( avisosTrabalhador.length > 0 )
{
contentPanel.add( new JLabel( " " ) );
// contentPanel.add( new JLabel( " " ) );
gridbag.setConstraints( trabalhadoresPanel, constraints );
contentPanel.add( trabalhadoresPanel );
}
if( avisosEstabelecimento.length > 0 )
{
contentPanel.add( new JLabel( " " ) );
// contentPanel.add( new JLabel( " " ) );
gridbag.setConstraints( estabelecimentosPanel, constraints );
contentPanel.add( estabelecimentosPanel );
}
}

Loading…
Cancel
Save