no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@7 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Frederico Palma 22 years ago
parent 6dc5a128fb
commit 4d34160a72

@ -72,7 +72,7 @@ public class EmpresaPanel extends JPanel
GridBagLayout gridbag = new GridBagLayout();
setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 );
constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.gridwidth = 1;
constraints.weightx = 0;

@ -101,7 +101,7 @@ public class ExamePanel extends JPanel
GridBagLayout gridbag = new GridBagLayout();
tipoPanel.setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 );
constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.weighty = 0;
constraints.gridheight = 1;

@ -9,11 +9,12 @@ package siprp.ficha;
import java.awt.*;
import javax.swing.*;
import com.evolute.utils.ui.window.*;
/**
*
* @author fpalma
*/
public class FichaWindow extends JFrame
public class FichaWindow extends TabbedWindow
{
private UpperPanel upperPanel;
private EmpresaPanel empresaPanel;
@ -22,34 +23,44 @@ public class FichaWindow extends JFrame
private ExamePanel examePanel;
private RecomendacoesPanel recomendacoesPanel;
private static int permissions[][] =
new int[][]{ { NEW_INDEX, CANCEL_INDEX, SAVE_INDEX, DELETE_INDEX, SELECT_BYNAME_INDEX } };
/** Creates a new instance of FichaWindow */
public FichaWindow()
throws Exception
{
super( new UpperPanel(), new String[]{ "Empresa/Trabalhador", "Exame" },
createPermissions( permissions ) );
upperPanel = (UpperPanel) getUpperPanel();
setupComponents();
}
private void setupComponents()
{
setSize( 700, 550 );
setSize( 700, 570 );
setResizable( false );
setTitle( "Ficha de Aptid\u00e3o" );
upperPanel = new UpperPanel();
JTabbedPane tabbed = new JTabbedPane();
getContentPane().setLayout( new BorderLayout() );
getContentPane().add( upperPanel, BorderLayout.NORTH );
getContentPane().add( tabbed, BorderLayout.CENTER );
JPanel empresaTrabalhadorPanel = new JPanel();
JPanel exameRecomendacoesPanel = new JPanel();
// upperPanel = new UpperPanel();
// JTabbedPane tabbed = new JTabbedPane();
// getContentPane().setLayout( new BorderLayout() );
// getContentPane().add( upperPanel, BorderLayout.NORTH );
// getContentPane().add( tabbed, BorderLayout.CENTER );
//
// JPanel empresaTrabalhadorPanel = new JPanel();
// JPanel exameRecomendacoesPanel = new JPanel();
//
// tabbed.add( "Empresa/Trabalhador", empresaTrabalhadorPanel );
// tabbed.add( "Exame", exameRecomendacoesPanel );
tabbed.add( "Empresa/Trabalhador", empresaTrabalhadorPanel );
tabbed.add( "Exame", exameRecomendacoesPanel );
JPanel empresaTrabalhadorPanel = getTab( 0 );
JPanel exameRecomendacoesPanel = getTab( 1 );
GridBagLayout gridbag = new GridBagLayout();
empresaTrabalhadorPanel.setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 );
constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.BOTH;
constraints.weightx = 1;
constraints.gridwidth = GridBagConstraints.REMAINDER;
@ -74,7 +85,7 @@ public class FichaWindow extends JFrame
gridbag = new GridBagLayout();
exameRecomendacoesPanel.setLayout( gridbag );
constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 );
constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.BOTH;
constraints.weightx = 1;
constraints.gridwidth = GridBagConstraints.REMAINDER;

@ -37,7 +37,7 @@ public class ObservacoesPanel extends JPanel
observacoesText.setWrapStyleWord( true );
scp.setViewportView( observacoesText );
setLayout( new GridLayout( 1, 1 ) );
setLayout( new GridLayout( 1, 1, 0, 0 ) );
add( scp );
}
}

@ -42,7 +42,7 @@ public class RecomendacoesPanel extends JPanel
JLabel proximoExameLabel = new JLabel( "Pr\u00f3ximo Exame" );
proximoExamePanel = new JCalendarPanel( null );
setLayout( new GridLayout( 1, 2 ) );
setLayout( new GridLayout( 1, 2, 0, 0 ) );
add( scp );
add( rightPanel );

@ -70,7 +70,7 @@ public class TrabalhadorPanel extends JPanel
GridBagLayout gridbag = new GridBagLayout();
setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 );
constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.weighty = 0;
constraints.gridheight = 1;

@ -42,7 +42,7 @@ public class UpperPanel extends JPanel
GridBagLayout gridbag = new GridBagLayout();
setLayout( gridbag );
GridBagConstraints constraints = new GridBagConstraints();
constraints.insets = new Insets( 1, 1, 1, 1 );
constraints.insets = new Insets( 0, 1, 0, 1 );
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.gridheight = 1;
constraints.weighty = 0;

Loading…
Cancel
Save