• Sábado 20 de Abril de 2024, 12:23

Autor Tema:  DATA GRID, DATETIME PICKER, Y BINDING NAVIGATOR,  (Leído 1636 veces)

Viruz_7

  • Nuevo Miembro
  • *
  • Mensajes: 14
    • Ver Perfil
DATA GRID, DATETIME PICKER, Y BINDING NAVIGATOR,
« en: Viernes 20 de Noviembre de 2009, 02:17 »
0
Hola amigos Bakunos bueno estoy haciendo un sistema de informacion como proyecto y hasta ahorita va a la perfeccion solo que navengando me encontre esta interfaz de una ventana de un sistema:
Lastima que no puedo poner Links

Estos componentes nuna los he visto y mucho menos utilizado, si alguien me podria proporcionar informacion con respecto de estos.

alguien que me pueda ayudar.Gracias se los agradecere me interesa mucho el DATA GRID. :comp:  :(

manix

  • Miembro MUY activo
  • ***
  • Mensajes: 203
  • Nacionalidad: cr
    • Ver Perfil
    • http://apuntes.delibertad.com
Re: DATA GRID, DATETIME PICKER, Y BINDING NAVIGATOR,
« Respuesta #1 en: Viernes 20 de Noviembre de 2009, 02:49 »
0
HOla,

Pues es imposible ayudarte, no hay referencias de nada, ni siquiera un archivo adjunto con la informacion.  :lightsabre:
Lo mas seguro que esos componentes sean librerias externas, hechas por otros programadores java como vos o yo, el JDateTimePicker "creo" que pertenece a los creadores del JCalendar, de ser asi, son una serie de beans (componentes visuales) que fueron programados para una funcion determinada a partir de otros componentes. Por lo general, estos componentes pueden ser incluidos en tu proyecto agregando jars al classpath y luego compilar.

pura vida

Viruz_7

  • Nuevo Miembro
  • *
  • Mensajes: 14
    • Ver Perfil
Re: DATA GRID, DATETIME PICKER, Y BINDING NAVIGATOR,
« Respuesta #2 en: Sábado 21 de Noviembre de 2009, 03:41 »
0
Tengo mi Contenedor:

   private JPanel getJContentPane() throws IOException{
      if (jContentPane == null) {
         
         
         jLabel = new JLabel();
         jLabel.setFont(new Font("Cambria", Font.BOLD | Font.ITALIC, 36));
         jLabel.setForeground(Color.white);
         jLabel.setText("HISTORIA");
         jLabel.setHorizontalTextPosition(JLabel.CENTER);
         jLabel.setBounds(new Rectangle(311, 2, 158, 44));
         jLabel.setVerticalTextPosition(JLabel.CENTER);
         //paneles[0].add(jLabel);
         
         jContentPane = new JPanel();
         jContentPane.setLayout(null);
         jContentPane.add(getJPanel(), null);
         jContentPane.add(getJPanel1(), null);
        }
      return jContentPane;
   }

Tengo mi Panel Menu:

   private JPanel getJPanel() throws IOException {
      if (jPanel == null) {
         jLabel1 = new JLabel();
         jLabel1.setText("");
         jLabel1.setBounds(new Rectangle(42, 356, 167, 121));
         jLabel1.setIcon( new ImageIcon( "imagenes/gaucho2.png" ) );
         
         jLabel7 = new JLabel();
         jLabel7.setBounds(new Rectangle(30, 331, 127, 31));
         jLabel7.setForeground(new Color(102, 51, 0));
         jLabel7.setFont(new Font("Segoe Script", Font.BOLD | Font.ITALIC, 11));
         jLabel7.setText("FACTURACION");
         jLabel6 = new JLabel();
         jLabel6.setBounds(new Rectangle(28, 269, 106, 29));
         jLabel6.setForeground(new Color(102, 51, 0));
         jLabel6.setFont(new Font("Segoe Script", Font.BOLD | Font.ITALIC, 12));
         jLabel6.setText("PLATILLOS");
         
         
         jLabel5 = new JLabel();
         jLabel5.setBounds(new Rectangle(28, 91, 106, 31));
         jLabel5.setForeground(new Color(102, 51, 0));
         jLabel5.setFont(new Font("Segoe Script", Font.BOLD | Font.ITALIC, 12));
         jLabel5.setText("COCINEROS");
         jLabel5.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {        
                    //jPanel2.setVisible(true);
               JOptionPane.showMessageDialog(null,"n Cuando doy click" +
                     "n Cambie el JPanel y quite el Actual");
               Index2 view = new Index2();
               JPanel mainWindow = null;

               try {
                  //mainWindow = view.getJPanel2();
                  view.getJPanel1().setVisible(false);
               } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
               }       
               mainWindow.setVisible(true);

                  }
           });
         
         jLabel4 = new JLabel();
         jLabel4.setBounds(new Rectangle(28, 151, 105, 30));
         jLabel4.setForeground(new Color(102, 51, 0));
         jLabel4.setFont(new Font("Segoe Script", Font.BOLD | Font.ITALIC, 12));
         jLabel4.setText("PEDIDOS");
         jLabel3 = new JLabel();
         jLabel3.setBounds(new Rectangle(28, 212, 149, 30));
         jLabel3.setForeground(new Color(102, 51, 0));
         jLabel3.setFont(new Font("Segoe Script", Font.BOLD | Font.ITALIC, 11));
         jLabel3.setText("RESERVACIONES");
         
         jLabel2 = new JLabel();
         jLabel2.setBounds(new Rectangle(27, 30, 107, 31));
         jLabel2.setForeground(new Color(102, 51, 0));
         jLabel2.setFont(new Font("Segoe Script", Font.BOLD | Font.ITALIC, 12));
         jLabel2.setText("HOME");
                  
         jPanel = new JPanel();
         jPanel.setLayout(null);
         jPanel.setBounds(new Rectangle(0, 0, 153, 479));
         //jPanel.setBorder(BorderFactory.createLineBorder(new Color(102, 51, 0), 2));
         jPanel.add(jLabel2, null);
         jPanel.add(jLabel3, null);
         jPanel.add(jLabel4, null);
         jPanel.add(jLabel5, null);
         jPanel.add(jLabel6, null);
         jPanel.add(jLabel7, null);
      }            
      File f=new File("imagenes/fondo2.png");
      BufferedImage tmp= ImageIO.read(f);
      Bordes fondo= new Bordes(tmp);
      this.jPanel.setBorder(fondo);
      jPanel.add(jLabel1, null);
      
      return jPanel;
   }

Y tengo el Panel del Label Home:

   private JPanel getJPanel1() throws IOException {
      if (jPanel1 == null) {
         
         jPanel1 = new JPanel();
         jPanel1.setLayout(null);
         jPanel1.setBounds(new Rectangle(153, 0, 505, 479));
         jPanel1.add(getJScrollPane(), null);
         jPanel1.add(jLabel, null);
      }
      File f=new File("imagenes/fondo_restaurante.jpg");
      BufferedImage tmp= ImageIO.read(f);
      Bordes fondo= new Bordes(tmp);
      this.jPanel1.setBorder(fondo);
      jPanel1.add(getJPanel21(), null);
      jPanel1.add(getJPanel31(), null);
      
      return jPanel1;
   }

Como hacer que cuando clickeo otro label aparesca otro panel y quiere el del Home?