Skip to content

Commit e3ad2a6

Browse files
committed
PreCodeLine
1 parent 0ba394b commit e3ad2a6

107 files changed

Lines changed: 6372 additions & 3486 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CodeLine_v/nbproject/private/private.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ do.depend=false
33
do.jar=true
44
javac.debug=true
55
javadoc.preview=true
6-
user.properties.file=C:\\Users\\efrai\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
6+
user.properties.file=C:\\Users\\Rodrigo\\AppData\\Roaming\\NetBeans\\8.2\\build.properties

CodeLine_v/nbproject/private/private.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
44
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
55
<group>
6-
<file>file:/C:/Users/efrai/Desktop/CodeLine/CodeLine_v/src/CodeLine/CodeLine.java</file>
7-
<file>file:/C:/Users/efrai/Desktop/CodeLine/CodeLine_v/src/CodeLine/Lecciones2.java</file>
8-
<file>file:/C:/Users/efrai/Desktop/CodeLine/CodeLine_v/src/CodeLine/Archivo.java</file>
9-
<file>file:/C:/Users/efrai/Desktop/CodeLine/CodeLine_v/src/CodeLine/Pantalla_Leccion.java</file>
10-
<file>file:/C:/Users/efrai/Desktop/CodeLine/CodeLine_v/src/CodeLine/Lecciones.java</file>
11-
<file>file:/C:/Users/efrai/Desktop/CodeLine/CodeLine_v/src/CodeLine/PantallaC.java</file>
6+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/TiposDatos.java</file>
7+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/Const.java</file>
8+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/CondicionalIf.java</file>
9+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/OpRelacional.java</file>
10+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/Switches.java</file>
11+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/OpExpresion.java</file>
12+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/Fores.java</file>
13+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/UsoCons.java</file>
14+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/Whiles.java</file>
15+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/InOut.java</file>
16+
<file>file:/C:/Users/Rodrigo/Desktop/PROYECTO%20CODELINE/CodeLine/CodeLine_v/src/CodeLine/Identi.java</file>
1217
</group>
1318
</open-files>
1419
</project-private>

CodeLine_v/src/CodeLine/Arbol_B.form

Lines changed: 62 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
44
<Properties>
55
<Property name="defaultCloseOperation" type="int" value="3"/>
6-
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
7-
<Dimension value="[800, 600]"/>
8-
</Property>
96
</Properties>
107
<SyntheticProperties>
118
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
@@ -26,29 +23,38 @@
2623
<Layout>
2724
<DimensionLayout dim="0">
2825
<Group type="103" groupAlignment="0" attributes="0">
29-
<Group type="102" alignment="1" attributes="0">
30-
<EmptySpace pref="667" max="32767" attributes="0"/>
31-
<Component id="jButton1" min="-2" pref="97" max="-2" attributes="0"/>
32-
<EmptySpace min="-2" pref="36" max="-2" attributes="0"/>
33-
</Group>
34-
<Group type="102" alignment="0" attributes="0">
35-
<EmptySpace min="-2" pref="97" max="-2" attributes="0"/>
36-
<Group type="103" groupAlignment="1" attributes="0">
37-
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
38-
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
39-
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
40-
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
41-
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
42-
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
26+
<Group type="102" attributes="0">
27+
<EmptySpace pref="181" max="32767" attributes="0"/>
28+
<Group type="103" groupAlignment="0" attributes="0">
29+
<Group type="102" alignment="1" attributes="0">
30+
<Component id="jButton1" min="-2" pref="97" max="-2" attributes="0"/>
31+
<EmptySpace min="-2" pref="36" max="-2" attributes="0"/>
32+
</Group>
33+
<Group type="102" alignment="1" attributes="0">
34+
<Group type="103" groupAlignment="0" attributes="0">
35+
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
36+
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
37+
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
38+
<Group type="103" alignment="1" groupAlignment="0" attributes="0">
39+
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
40+
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
41+
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
42+
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
43+
</Group>
44+
<Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/>
45+
</Group>
46+
</Group>
47+
</Group>
48+
<EmptySpace min="-2" pref="176" max="-2" attributes="0"/>
49+
</Group>
4350
</Group>
44-
<EmptySpace max="32767" attributes="0"/>
4551
</Group>
4652
</Group>
4753
</DimensionLayout>
4854
<DimensionLayout dim="1">
4955
<Group type="103" groupAlignment="0" attributes="0">
5056
<Group type="102" alignment="1" attributes="0">
51-
<EmptySpace min="-2" pref="228" max="-2" attributes="0"/>
57+
<EmptySpace pref="255" max="32767" attributes="0"/>
5258
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
5359
<EmptySpace max="-2" attributes="0"/>
5460
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
@@ -60,7 +66,7 @@
6066
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
6167
<EmptySpace max="-2" attributes="0"/>
6268
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
63-
<EmptySpace pref="167" max="32767" attributes="0"/>
69+
<EmptySpace min="-2" pref="98" max="-2" attributes="0"/>
6470
<Component id="jButton1" min="-2" pref="37" max="-2" attributes="0"/>
6571
<EmptySpace min="-2" pref="54" max="-2" attributes="0"/>
6672
</Group>
@@ -78,31 +84,67 @@
7884
</Component>
7985
<Component class="javax.swing.JLabel" name="jLabel1">
8086
<Properties>
87+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
88+
<Font name="Comic Sans MS" size="14" style="0"/>
89+
</Property>
90+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
91+
<Color blue="ff" green="ff" red="ff" type="rgb"/>
92+
</Property>
8193
<Property name="text" type="java.lang.String" value="Los arboles-B son una generalizacion de los arboles balanceados. "/>
8294
</Properties>
8395
</Component>
8496
<Component class="javax.swing.JLabel" name="jLabel2">
8597
<Properties>
98+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
99+
<Font name="Comic Sans MS" size="14" style="0"/>
100+
</Property>
101+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
102+
<Color blue="ff" green="ff" red="ff" type="rgb"/>
103+
</Property>
86104
<Property name="text" type="java.lang.String" value="Estos representan basicamente un metodo de busqueda externa "/>
87105
</Properties>
88106
</Component>
89107
<Component class="javax.swing.JLabel" name="jLabel3">
90108
<Properties>
109+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
110+
<Font name="Comic Sans MS" size="14" style="0"/>
111+
</Property>
112+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
113+
<Color blue="ff" green="ff" red="ff" type="rgb"/>
114+
</Property>
91115
<Property name="text" type="java.lang.String" value="utilizando arboles multicaminos. En general cada nodo en un arbol "/>
92116
</Properties>
93117
</Component>
94118
<Component class="javax.swing.JLabel" name="jLabel4">
95119
<Properties>
120+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
121+
<Font name="Comic Sans MS" size="14" style="0"/>
122+
</Property>
123+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
124+
<Color blue="ff" green="ff" red="ff" type="rgb"/>
125+
</Property>
96126
<Property name="text" type="java.lang.String" value="de orden d contiene 2d calves como maximo y d claves como minimo. "/>
97127
</Properties>
98128
</Component>
99129
<Component class="javax.swing.JLabel" name="jLabel5">
100130
<Properties>
131+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
132+
<Font name="Comic Sans MS" size="14" style="0"/>
133+
</Property>
134+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
135+
<Color blue="ff" green="ff" red="ff" type="rgb"/>
136+
</Property>
101137
<Property name="text" type="java.lang.String" value="Con esto se garantiza que cada pagina este llena como minimo hasta "/>
102138
</Properties>
103139
</Component>
104140
<Component class="javax.swing.JLabel" name="jLabel6">
105141
<Properties>
142+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
143+
<Font name="Comic Sans MS" size="14" style="0"/>
144+
</Property>
145+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
146+
<Color blue="ff" green="ff" red="ff" type="rgb"/>
147+
</Property>
106148
<Property name="text" type="java.lang.String" value="la mitad. "/>
107149
</Properties>
108150
</Component>

CodeLine_v/src/CodeLine/Arbol_B.java

Lines changed: 48 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
61
package CodeLine;
72

8-
/**
9-
*
10-
* @author efrai
11-
*/
3+
import javax.swing.ImageIcon;
4+
import javax.swing.JLabel;
5+
import javax.swing.JLayeredPane;
6+
import javax.swing.JPanel;
7+
128
public class Arbol_B extends javax.swing.JFrame {
139

14-
/**
15-
* Creates new form Arbol_B
16-
*/
1710
public Arbol_B() {
1811
initComponents();
12+
setLocationRelativeTo(null);
13+
setResizable(false);
14+
setTitle("Arboles");
15+
16+
String directorioActual = System.getProperty("user.dir");
17+
String separador = System.getProperty("file.separator");
18+
19+
((JPanel)getContentPane()).setOpaque(false);
20+
ImageIcon img = new ImageIcon(directorioActual+separador+"src/CodeLine/Images/arbolesB.png");
21+
JLabel fondo = new JLabel(img);
22+
fondo.setBounds(-4,-14,img.getIconWidth(),img.getIconHeight());
23+
getLayeredPane().add(fondo,JLayeredPane.FRAME_CONTENT_LAYER);
1924
}
2025

21-
/**
22-
* This method is called from within the constructor to initialize the form.
23-
* WARNING: Do NOT modify this code. The content of this method is always
24-
* regenerated by the Form Editor.
25-
*/
2626
@SuppressWarnings("unchecked")
2727
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
2828
private void initComponents() {
@@ -36,7 +36,6 @@ private void initComponents() {
3636
jLabel6 = new javax.swing.JLabel();
3737

3838
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
39-
setPreferredSize(new java.awt.Dimension(800, 600));
4039

4140
jButton1.setText("Regresar");
4241
jButton1.addActionListener(new java.awt.event.ActionListener() {
@@ -45,41 +44,57 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
4544
}
4645
});
4746

47+
jLabel1.setFont(new java.awt.Font("Comic Sans MS", 0, 14)); // NOI18N
48+
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
4849
jLabel1.setText("Los arboles-B son una generalizacion de los arboles balanceados. ");
4950

51+
jLabel2.setFont(new java.awt.Font("Comic Sans MS", 0, 14)); // NOI18N
52+
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
5053
jLabel2.setText("Estos representan basicamente un metodo de busqueda externa ");
5154

55+
jLabel3.setFont(new java.awt.Font("Comic Sans MS", 0, 14)); // NOI18N
56+
jLabel3.setForeground(new java.awt.Color(255, 255, 255));
5257
jLabel3.setText("utilizando arboles multicaminos. En general cada nodo en un arbol ");
5358

59+
jLabel4.setFont(new java.awt.Font("Comic Sans MS", 0, 14)); // NOI18N
60+
jLabel4.setForeground(new java.awt.Color(255, 255, 255));
5461
jLabel4.setText("de orden d contiene 2d calves como maximo y d claves como minimo. ");
5562

63+
jLabel5.setFont(new java.awt.Font("Comic Sans MS", 0, 14)); // NOI18N
64+
jLabel5.setForeground(new java.awt.Color(255, 255, 255));
5665
jLabel5.setText("Con esto se garantiza que cada pagina este llena como minimo hasta ");
5766

67+
jLabel6.setFont(new java.awt.Font("Comic Sans MS", 0, 14)); // NOI18N
68+
jLabel6.setForeground(new java.awt.Color(255, 255, 255));
5869
jLabel6.setText("la mitad. ");
5970

6071
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
6172
getContentPane().setLayout(layout);
6273
layout.setHorizontalGroup(
6374
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
64-
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
65-
.addContainerGap(667, Short.MAX_VALUE)
66-
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
67-
.addGap(36, 36, 36))
6875
.addGroup(layout.createSequentialGroup()
69-
.addGap(97, 97, 97)
70-
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
71-
.addComponent(jLabel6)
72-
.addComponent(jLabel5)
73-
.addComponent(jLabel4)
74-
.addComponent(jLabel3)
75-
.addComponent(jLabel2)
76-
.addComponent(jLabel1))
77-
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
76+
.addContainerGap(181, Short.MAX_VALUE)
77+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
78+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
79+
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
80+
.addGap(36, 36, 36))
81+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
82+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
83+
.addComponent(jLabel6)
84+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
85+
.addComponent(jLabel5)
86+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
88+
.addComponent(jLabel3)
89+
.addComponent(jLabel2)
90+
.addComponent(jLabel1))
91+
.addComponent(jLabel4))))
92+
.addGap(176, 176, 176))))
7893
);
7994
layout.setVerticalGroup(
8095
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
8196
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
82-
.addGap(228, 228, 228)
97+
.addContainerGap(255, Short.MAX_VALUE)
8398
.addComponent(jLabel1)
8499
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
85100
.addComponent(jLabel2)
@@ -91,7 +106,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
91106
.addComponent(jLabel5)
92107
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
93108
.addComponent(jLabel6)
94-
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 167, Short.MAX_VALUE)
109+
.addGap(98, 98, 98)
95110
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
96111
.addGap(54, 54, 54))
97112
);
@@ -106,34 +121,7 @@ private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
106121
dispose();
107122
}//GEN-LAST:event_jButton1ActionPerformed
108123

109-
/**
110-
* @param args the command line arguments
111-
*/
112124
public static void main(String args[]) {
113-
/* Set the Nimbus look and feel */
114-
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
115-
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
116-
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
117-
*/
118-
try {
119-
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
120-
if ("Nimbus".equals(info.getName())) {
121-
javax.swing.UIManager.setLookAndFeel(info.getClassName());
122-
break;
123-
}
124-
}
125-
} catch (ClassNotFoundException ex) {
126-
java.util.logging.Logger.getLogger(Arbol_B.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
127-
} catch (InstantiationException ex) {
128-
java.util.logging.Logger.getLogger(Arbol_B.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
129-
} catch (IllegalAccessException ex) {
130-
java.util.logging.Logger.getLogger(Arbol_B.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
131-
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
132-
java.util.logging.Logger.getLogger(Arbol_B.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
133-
}
134-
//</editor-fold>
135-
136-
/* Create and display the form */
137125
java.awt.EventQueue.invokeLater(new Runnable() {
138126
public void run() {
139127
new Arbol_B().setVisible(true);

0 commit comments

Comments
 (0)