Permalink
Browse files

alterando tela main

  • Loading branch information...
1 parent e87e57f commit 957733b6a0096352932f5d257ee743110250454b @renanol renanol committed Aug 1, 2012
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <AuxValues>
- <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
- <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
- <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
- <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
- <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- </AuxValues>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <EmptySpace min="0" pref="400" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <EmptySpace min="0" pref="300" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- </Layout>
-</Form>
@@ -1,74 +0,0 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-package br.ufpb.iged.gui;
-
-import java.awt.Graphics;
-import java.awt.Graphics2D;
-import java.awt.Rectangle;
-import java.awt.TexturePaint;
-import java.awt.geom.Rectangle2D;
-import java.awt.image.BufferedImage;
-import java.io.IOException;
-import javax.imageio.ImageIO;
-
-/**
- *
- * @author darkolyver
- */
-public class Background extends javax.swing.JPanel {
-
- BufferedImage b;
- Rectangle2D rect;
-
- public Background() {
- try {
- //se você pegar uma imagem dentro do mesmo jar/projeto
- b = ImageIO.read(getClass().getResourceAsStream("imagens/99.png"));
-
- //ou, se você pegar uma imagem direto do sistema, use este
- // b = ImageIO.read(new File("<caminho da imagem>"));
-
- //cria uma imagem do tamanho 130x130,
- //que vai se repetir ao longo do fundo, o tamanho é você quem escolhe.
- rect = new Rectangle(0, 0, 130, 130);
-
- } catch (IOException ex) {
- ex.printStackTrace(System.err);
- }
-
- }
-
- @Override
- protected void paintComponent(Graphics g) {
-
- TexturePaint p = new TexturePaint(b, rect);
- Graphics2D g2 = (Graphics2D) g;
- g2.setPaint(p);
- g2.fillRect(0, 0, this.getWidth(), this.getHeight());
- }
-
- /**
- * This method is called from within the constructor to initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is always
- * regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 400, Short.MAX_VALUE)
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 300, Short.MAX_VALUE)
- );
- }// </editor-fold>//GEN-END:initComponents
- // Variables declaration - do not modify//GEN-BEGIN:variables
- // End of variables declaration//GEN-END:variables
-}
@@ -7,13 +7,9 @@
import br.ufpb.iged.gerenciadorIGEDlet.GerenciadorAtividade;
import br.ufpb.iged.gerenciadorIGEDlet.Metadado;
-import br.ufpb.iged.gerenciadorIGEDlet.Portifolio;
import br.ufpb.iged.gerenciadorIGEDlet.IGEDletSubjetiva;
import br.ufpb.iged.gerenciadorIGEDlet.PortifolioXml;
-import br.ufpb.iged.gerenciadorIGEDlet.XmlPersistencia;
-import br.ufpb.iged.gui.gerenciador.LeitorXmlGerenciador;
import java.awt.Color;
-import java.io.File;
import java.util.StringTokenizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -24,7 +20,7 @@
*
* @author Dorgi, Renan Oliveira
*/
-public class TelaCadastroDeTarefa extends javax.swing.JFrame {
+public class TelaCadastroDeTarefa extends javax.swing.JInternalFrame {
//Interpretador iter = Interpretador.getInstance();
@@ -782,46 +778,12 @@ public void showTela(){
public void run() {
TelaCadastroDeTarefa cadastrador = new TelaCadastroDeTarefa();
cadastrador.setVisible(true);
- cadastrador.setLocationRelativeTo(null);
}
});
- }
-
-
- public static void main(String args[]) {
-
- UIManager.put("nimbusBase", new Color(140, 42, 42));
- UIManager.put("nimbusBlueGrey", new Color(190, 167, 167));
- UIManager.put("control", new Color(223, 215, 214));
- try {
- for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
- if ("Nimbus".equals(info.getName())) {
- javax.swing.UIManager.setLookAndFeel(info.getClassName());
- break;
- }
- }
- } catch (ClassNotFoundException ex) {
- java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (InstantiationException ex) {
- java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (IllegalAccessException ex) {
- java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (javax.swing.UnsupportedLookAndFeelException ex) {
- java.util.logging.Logger.getLogger(TelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- }
-
- /* Create and display the form */
- java.awt.EventQueue.invokeLater(new Runnable() {
+ }
- @Override
- public void run() {
- TelaCadastroDeTarefa cadastrador = new TelaCadastroDeTarefa();
- cadastrador.setVisible(true);
- cadastrador.setLocationRelativeTo(null);
- }
- });
- }
+
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel area;
private javax.swing.JLabel autor;
@@ -92,11 +92,11 @@
<Component id="jButton2" linkSize="3" min="-2" pref="73" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jButton1" linkSize="3" min="-2" pref="62" max="-2" attributes="0"/>
- <EmptySpace min="0" pref="10" max="32767" attributes="0"/>
+ <EmptySpace min="0" pref="5" max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Component id="desktop" min="-2" pref="573" max="-2" attributes="0"/>
+ <Component id="desktop" pref="578" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -160,9 +160,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(0, 10, Short.MAX_VALUE)))
+ .addGap(0, 5, Short.MAX_VALUE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(desktop, javax.swing.GroupLayout.PREFERRED_SIZE, 573, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(desktop, javax.swing.GroupLayout.DEFAULT_SIZE, 578, Short.MAX_VALUE))
);
layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButton1, jButton2});
@@ -6,16 +6,17 @@
<Property name="title" type="java.lang.String" value="IGED - Interpretador de Comandos e Avaliador Gr&#xe1;fico para o Ensino de Estrutura de Dados"/>
<Property name="alwaysOnTop" type="boolean" value="true"/>
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
- <Color id="Cursor padr&#xe3;o"/>
+ <Color id="Default Cursor"/>
</Property>
<Property name="enabled" type="boolean" value="false"/>
<Property name="focusableWindowState" type="boolean" value="false"/>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[0, 0]"/>
</Property>
+ <Property name="resizable" type="boolean" value="false"/>
</Properties>
<SyntheticProperties>
- <SyntheticProperty name="formSizePolicy" type="int" value="2"/>
+ <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
@@ -32,29 +33,24 @@
<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">
- <Component id="botaoAbrir" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
- <Component id="botaoCadastrarTutorial" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="botaoPesquisarTutorial" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="botaoCadastrarExercicio" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="botaoPesquisarExercicio" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="botaoCadastrarObjetiva" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="botaoExecutarObjetiva" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="176" max="32767" attributes="0"/>
- <Component id="botaoAjuda" min="-2" max="-2" attributes="0"/>
- </Group>
- <Component id="panelPrincipal" alignment="0" max="32767" attributes="1"/>
- </Group>
+ <Group type="102" alignment="0" attributes="0">
+ <Component id="botaoAbrir" min="-2" max="-2" attributes="0"/>
+ <EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
+ <Component id="botaoCadastrarTutorial" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="botaoPesquisarTutorial" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
+ <Component id="botaoCadastrarExercicio" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="botaoPesquisarExercicio" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="botaoCadastrarObjetiva" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="botaoExecutarObjetiva" min="-2" max="-2" attributes="0"/>
+ <EmptySpace pref="448" max="32767" attributes="0"/>
+ <Component id="botaoAjuda" min="-2" max="-2" attributes="0"/>
</Group>
+ <Component id="panelPrincipal" alignment="0" max="32767" attributes="1"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
@@ -74,7 +70,6 @@
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="panelPrincipal" max="32767" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -85,12 +80,12 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
- <Component id="jDesktopPane1" alignment="0" pref="688" max="32767" attributes="0"/>
+ <Component id="jDesktopPane1" alignment="0" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
- <Component id="jDesktopPane1" alignment="1" pref="612" max="32767" attributes="0"/>
+ <Component id="jDesktopPane1" alignment="0" pref="634" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
Oops, something went wrong.

0 comments on commit 957733b

Please sign in to comment.