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.run.all.processors=true
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.vendor=MrMcX
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml

@ -24,6 +24,7 @@
<Menu class="javax.swing.JMenu" name="jMenuDescription">
<Properties>
<Property name="text" type="java.lang.String" value="Beschreibung exportieren"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
<Events>
<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">
<Properties>
<Property name="text" type="java.lang.String" value="Textdokument"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
<Events>
<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">
<Properties>
<Property name="text" type="java.lang.String" value="PDF erstellen"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuPdfActionPerformed"/>
@ -257,6 +258,9 @@
<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"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBoxExpActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>

@ -156,6 +156,11 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
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.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jCheckBoxExpActionPerformed(evt);
}
});
jPanelSettings.add(jCheckBoxExp);
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
@ -226,6 +231,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenu.add(jMenuNew);
jMenuDescription.setText("Beschreibung exportieren");
jMenuDescription.setEnabled(false);
jMenuDescription.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuDescriptionActionPerformed(evt);
@ -233,7 +239,6 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
});
jMenuDescTxt.setText("Textdokument");
jMenuDescTxt.setEnabled(false);
jMenuDescTxt.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuDescTxtActionPerformed(evt);
@ -276,6 +281,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenu.add(jMenuGraph);
jMenuPdf.setText("PDF erstellen");
jMenuPdf.setEnabled(false);
jMenuPdf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuPdfActionPerformed(evt);
@ -376,6 +382,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenuNew.setEnabled(true);
jMenuDescription.setEnabled(true);
jMenuGraph.setEnabled(true);
jMenuPdf.setEnabled(true);
CardLayout cl = (CardLayout) jPanelCards.getLayout();
cl.show(jPanelCards, "show");
}//GEN-LAST:event_jButtonGenerateActionPerformed
@ -384,6 +391,7 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
jMenuNew.setEnabled(false);
jMenuDescription.setEnabled(false);
jMenuGraph.setEnabled(false);
jMenuPdf.setEnabled(false);
CardLayout cl = (CardLayout) jPanelCards.getLayout();
cl.show(jPanelCards, "new");
jPanelDraw.removeAll();
@ -631,6 +639,12 @@ public class DungeonGeneratorUI extends javax.swing.JFrame {
}
}//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 {
Document document = new Document(PageSize.A4);
Image image = Image.getInstance(mxCellRenderer.createBufferedImage(mGraphComponent.getGraph(), null, 10, Color.WHITE, true, null), Color.WHITE);

Laden…
Abbrechen
Speichern