1
0
Fork 0

Small bugs fixed

master
MrMcX vor 8 Jahren
Ursprung e0a6ba4e88
Commit f27f52ad7f

@ -3,6 +3,7 @@ annotation.processing.enabled.in.editor=false
annotation.processing.processors.list= annotation.processing.processors.list=
annotation.processing.run.all.processors=true annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.splash=C:\\Users\\MrMcX\\ownCloud\\Rollenspiel\\DSA\\Meister\\DungeonGenerator\\resources\\images\\firewall.png
application.title=DungeonGenerator application.title=DungeonGenerator
application.vendor=MrMcX application.vendor=MrMcX
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml

@ -24,6 +24,7 @@
<Menu class="javax.swing.JMenu" name="jMenuDescription"> <Menu class="javax.swing.JMenu" name="jMenuDescription">
<Properties> <Properties>
<Property name="text" type="java.lang.String" value="Beschreibung exportieren"/> <Property name="text" type="java.lang.String" value="Beschreibung exportieren"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties> </Properties>
<Events> <Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuDescriptionActionPerformed"/> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuDescriptionActionPerformed"/>
@ -32,7 +33,6 @@
<MenuItem class="javax.swing.JMenuItem" name="jMenuDescTxt"> <MenuItem class="javax.swing.JMenuItem" name="jMenuDescTxt">
<Properties> <Properties>
<Property name="text" type="java.lang.String" value="Textdokument"/> <Property name="text" type="java.lang.String" value="Textdokument"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties> </Properties>
<Events> <Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuDescTxtActionPerformed"/> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuDescTxtActionPerformed"/>
@ -80,6 +80,7 @@
<MenuItem class="javax.swing.JMenuItem" name="jMenuPdf"> <MenuItem class="javax.swing.JMenuItem" name="jMenuPdf">
<Properties> <Properties>
<Property name="text" type="java.lang.String" value="PDF erstellen"/> <Property name="text" type="java.lang.String" value="PDF erstellen"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties> </Properties>
<Events> <Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuPdfActionPerformed"/> <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuPdfActionPerformed"/>
@ -257,6 +258,9 @@
<Properties> <Properties>
<Property name="text" type="java.lang.String" value="&lt;html&gt;&#xa;&lt;b&gt;Experimenteller Modus&lt;/b&gt;&lt;br/&gt;&#xa;schr&#xe4;nkt Raumzahl nicht direkt ein, sondern &#xe4;ndert die Zufallsfunktion so, dass ihr Erwartungswert der Raumanzahl entspricht"/> <Property name="text" type="java.lang.String" value="&lt;html&gt;&#xa;&lt;b&gt;Experimenteller Modus&lt;/b&gt;&lt;br/&gt;&#xa;schr&#xe4;nkt Raumzahl nicht direkt ein, sondern &#xe4;ndert die Zufallsfunktion so, dass ihr Erwartungswert der Raumanzahl entspricht"/>
</Properties> </Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBoxExpActionPerformed"/>
</Events>
</Component> </Component>
<Component class="javax.swing.JLabel" name="jLabel1"> <Component class="javax.swing.JLabel" name="jLabel1">
<Properties> <Properties>

@ -156,6 +156,11 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jPanelSettings.add(filler1); jPanelSettings.add(filler1);
jCheckBoxExp.setText("<html>\n<b>Experimenteller Modus</b><br/>\nschränkt Raumzahl nicht direkt ein, sondern ändert die Zufallsfunktion so, dass ihr Erwartungswert der Raumanzahl entspricht"); jCheckBoxExp.setText("<html>\n<b>Experimenteller Modus</b><br/>\nschränkt Raumzahl nicht direkt ein, sondern ändert die Zufallsfunktion so, dass ihr Erwartungswert der Raumanzahl entspricht");
jCheckBoxExp.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jCheckBoxExpActionPerformed(evt);
}
});
jPanelSettings.add(jCheckBoxExp); jPanelSettings.add(jCheckBoxExp);
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
@ -226,6 +231,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenu.add(jMenuNew); jMenu.add(jMenuNew);
jMenuDescription.setText("Beschreibung exportieren"); jMenuDescription.setText("Beschreibung exportieren");
jMenuDescription.setEnabled(false);
jMenuDescription.addActionListener(new java.awt.event.ActionListener() { jMenuDescription.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuDescriptionActionPerformed(evt); jMenuDescriptionActionPerformed(evt);
@ -233,7 +239,6 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
}); });
jMenuDescTxt.setText("Textdokument"); jMenuDescTxt.setText("Textdokument");
jMenuDescTxt.setEnabled(false);
jMenuDescTxt.addActionListener(new java.awt.event.ActionListener() { jMenuDescTxt.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuDescTxtActionPerformed(evt); jMenuDescTxtActionPerformed(evt);
@ -276,6 +281,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenu.add(jMenuGraph); jMenu.add(jMenuGraph);
jMenuPdf.setText("PDF erstellen"); jMenuPdf.setText("PDF erstellen");
jMenuPdf.setEnabled(false);
jMenuPdf.addActionListener(new java.awt.event.ActionListener() { jMenuPdf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuPdfActionPerformed(evt); jMenuPdfActionPerformed(evt);
@ -376,6 +382,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenuNew.setEnabled(true); jMenuNew.setEnabled(true);
jMenuDescription.setEnabled(true); jMenuDescription.setEnabled(true);
jMenuGraph.setEnabled(true); jMenuGraph.setEnabled(true);
jMenuPdf.setEnabled(true);
CardLayout cl = (CardLayout) jPanelCards.getLayout(); CardLayout cl = (CardLayout) jPanelCards.getLayout();
cl.show(jPanelCards, "show"); cl.show(jPanelCards, "show");
}//GEN-LAST:event_jButtonGenerateActionPerformed }//GEN-LAST:event_jButtonGenerateActionPerformed
@ -384,6 +391,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenuNew.setEnabled(false); jMenuNew.setEnabled(false);
jMenuDescription.setEnabled(false); jMenuDescription.setEnabled(false);
jMenuGraph.setEnabled(false); jMenuGraph.setEnabled(false);
jMenuPdf.setEnabled(false);
CardLayout cl = (CardLayout) jPanelCards.getLayout(); CardLayout cl = (CardLayout) jPanelCards.getLayout();
cl.show(jPanelCards, "new"); cl.show(jPanelCards, "new");
jPanelDraw.removeAll(); jPanelDraw.removeAll();
@ -631,6 +639,12 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
} }
}//GEN-LAST:event_jMenuDescriptionActionPerformed }//GEN-LAST:event_jMenuDescriptionActionPerformed
private void jCheckBoxExpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxExpActionPerformed
jComboBoxMode.setEnabled(!jCheckBoxExp.isSelected());
jLabel2.setEnabled(!jCheckBoxExp.isSelected());
//jComboBoxMode.setSelectedItem("Zufällig");
}//GEN-LAST:event_jCheckBoxExpActionPerformed
private void CreateGraphPDF(File file) throws BadElementException, IOException, DocumentException { private void CreateGraphPDF(File file) throws BadElementException, IOException, DocumentException {
Document document = new Document(PageSize.A4); Document document = new Document(PageSize.A4);
Image image = Image.getInstance(mxCellRenderer.createBufferedImage(mGraphComponent.getGraph(), null, 10, Color.WHITE, true, null), Color.WHITE); Image image = Image.getInstance(mxCellRenderer.createBufferedImage(mGraphComponent.getGraph(), null, 10, Color.WHITE, true, null), Color.WHITE);

Laden…
Abbrechen
Speichern