GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — First Commit · ameya-6964/Notepad-With-Java@02d8e62

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • MainWindow.form
  • MainWindow.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎MainWindow.form‎

Copy file name to clipboard
+36Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<Properties>
5+
<Property name="defaultCloseOperation" type="int" value="3"/>
6+
<Property name="title" type="java.lang.String" value="Java Notepad"/>
7+
</Properties>
8+
<SyntheticProperties>
9+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
10+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
11+
</SyntheticProperties>
12+
<AuxValues>
13+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
14+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
15+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
16+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
17+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
18+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
19+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
20+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
21+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
22+
</AuxValues>
23+
24+
<Layout>
25+
<DimensionLayout dim="0">
26+
<Group type="103" groupAlignment="0" attributes="0">
27+
<EmptySpace min="0" pref="763" max="32767" attributes="0"/>
28+
</Group>
29+
</DimensionLayout>
30+
<DimensionLayout dim="1">
31+
<Group type="103" groupAlignment="0" attributes="0">
32+
<EmptySpace min="0" pref="471" max="32767" attributes="0"/>
33+
</Group>
34+
</DimensionLayout>
35+
</Layout>
36+
</Form>
Collapse file

‎MainWindow.java‎

Copy file name to clipboard
+83Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3+
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
4+
*/
5+
package javanotepad;
6+
7+
/**
8+
*
9+
* @author belva
10+
*/
11+
public class MainWindow extends javax.swing.JFrame {
12+
13+
/**
14+
* Creates new form MainWindow
15+
*/
16+
public MainWindow() {
17+
initComponents();
18+
}
19+
20+
/**
21+
* This method is called from within the constructor to initialize the form.
22+
* WARNING: Do NOT modify this code. The content of this method is always
23+
* regenerated by the Form Editor.
24+
*/
25+
@SuppressWarnings("unchecked")
26+
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
27+
private void initComponents() {
28+
29+
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
30+
setTitle("Java Notepad");
31+
32+
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
33+
getContentPane().setLayout(layout);
34+
layout.setHorizontalGroup(
35+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
36+
.addGap(0, 763, Short.MAX_VALUE)
37+
);
38+
layout.setVerticalGroup(
39+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
40+
.addGap(0, 471, Short.MAX_VALUE)
41+
);
42+
43+
pack();
44+
}// </editor-fold>//GEN-END:initComponents
45+
46+
/**
47+
* @param args the command line arguments
48+
*/
49+
public static void main(String args[]) {
50+
/* Set the Nimbus look and feel */
51+
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
52+
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
53+
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
54+
*/
55+
try {
56+
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
57+
if ("Nimbus".equals(info.getName())) {
58+
javax.swing.UIManager.setLookAndFeel(info.getClassName());
59+
break;
60+
}
61+
}
62+
} catch (ClassNotFoundException ex) {
63+
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
64+
} catch (InstantiationException ex) {
65+
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
66+
} catch (IllegalAccessException ex) {
67+
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
68+
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
69+
java.util.logging.Logger.getLogger(MainWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
70+
}
71+
//</editor-fold>
72+
73+
/* Create and display the form */
74+
java.awt.EventQueue.invokeLater(new Runnable() {
75+
public void run() {
76+
new MainWindow().setVisible(true);
77+
}
78+
});
79+
}
80+
81+
// Variables declaration - do not modify//GEN-BEGIN:variables
82+
// End of variables declaration//GEN-END:variables
83+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.