Du alter pfuscher - Titel und zentriertes Öffnen über GUI Generator
This commit is contained in:
parent
cec961f46a
commit
34e1e4d2ed
@ -26,7 +26,6 @@ public class Start {
|
||||
ReceiveAdapterController rxAdapter = new ReceiveAdapterController(view);
|
||||
model.addObserver(rxAdapter);
|
||||
|
||||
view.setTitle("ICQ 0.1 xD");
|
||||
view.setVisible(true);
|
||||
}
|
||||
|
||||
|
@ -7,10 +7,11 @@
|
||||
</NonVisualComponents>
|
||||
<Properties>
|
||||
<Property name="defaultCloseOperation" type="int" value="3"/>
|
||||
<Property name="title" type="java.lang.String" value="ICQ 0.1 xD"/>
|
||||
</Properties>
|
||||
<SyntheticProperties>
|
||||
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
|
||||
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
|
||||
<SyntheticProperty name="generateCenter" type="boolean" value="true"/>
|
||||
</SyntheticProperties>
|
||||
<AuxValues>
|
||||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
||||
|
@ -95,7 +95,8 @@ public class ChatView extends javax.swing.JFrame {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
||||
private void initComponents() {
|
||||
private void initComponents()
|
||||
{
|
||||
|
||||
bgSelect = new javax.swing.ButtonGroup();
|
||||
jScrollPane1 = new javax.swing.JScrollPane();
|
||||
@ -112,6 +113,7 @@ public class ChatView extends javax.swing.JFrame {
|
||||
jSeparator2 = new javax.swing.JSeparator();
|
||||
|
||||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||||
setTitle("ICQ 0.1 xD");
|
||||
|
||||
taCommunication.setColumns(20);
|
||||
taCommunication.setRows(5);
|
||||
@ -135,16 +137,20 @@ public class ChatView extends javax.swing.JFrame {
|
||||
bgSelect.add(rbClient);
|
||||
rbClient.setSelected(true);
|
||||
rbClient.setText("Client");
|
||||
rbClient.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
rbClient.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt)
|
||||
{
|
||||
rbClientActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
|
||||
bgSelect.add(rbServer);
|
||||
rbServer.setText("Server");
|
||||
rbServer.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
rbServer.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt)
|
||||
{
|
||||
rbServerActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
@ -205,6 +211,7 @@ public class ChatView extends javax.swing.JFrame {
|
||||
);
|
||||
|
||||
pack();
|
||||
setLocationRelativeTo(null);
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
private void rbClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbClientActionPerformed
|
||||
|
Loading…
x
Reference in New Issue
Block a user