-
Notifications
You must be signed in to change notification settings - Fork 0
/
Arbeidsgiverdetails.java
110 lines (104 loc) · 2.68 KB
/
Arbeidsgiverdetails.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import java.awt.Dimension;
import java.awt.*;
import javax.swing.JPanel;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.List;
import java.util.Iterator;
import java.io.*;
public class Arbeidsgiverdetails extends JPanel implements Serializable
{
public Arbeidsgiverdetails(JTextField fornavntxt, JTextField etternavntxt, JTextField firmatxt, JTextField adressetxt, JTextField bransjetxt, JTextField tlftxt, JTextField eposttxt, JTextField bytxt, JTextField nrtxt, JTextField kjonntxt, JTextField aldertxt)
{
Dimension size = getPreferredSize();
size.width = 250;
setPreferredSize(size);
setBorder(BorderFactory.createTitledBorder("Arbeidsgiverinformasjon"));
JTextField fornavntxt1 = fornavntxt;
JTextField etternavntxt1 = etternavntxt;
JTextField firmatxt1 = firmatxt;
JTextField adressetxt1 = adressetxt;
JTextField bransjetxt1 = bransjetxt;
JTextField tlftxt1 = tlftxt;
JTextField eposttxt1 = eposttxt;
JTextField bytxt1 = bytxt;
JTextField nrtxt1 = nrtxt;
JTextField kjonntxt1 = kjonntxt;
JTextField aldertxt1 = aldertxt;
setLayout(new GridBagLayout());
GridBagConstraints gc = new GridBagConstraints();
gc.weightx = 0.5;
gc.weighty = 0.5;
gc.anchor = GridBagConstraints.LINE_END;
gc.gridx = 0;
gc.gridy = 0;
add(new JLabel("Fornavn: "), gc);
gc.gridx = 0;
gc.gridy = 1;
add(new JLabel("Etternavn: "), gc);
gc.gridx = 0;
gc.gridy = 2;
add(new JLabel("Firma: "), gc);
gc.gridx = 0;
gc.gridy = 3;
add(new JLabel("Adresse: "), gc);
gc.gridx = 0;
gc.gridy = 4;
add(new JLabel("Bransje: "), gc);
gc.gridx = 0;
gc.gridy = 5;
add(new JLabel("Telefon: "), gc);
gc.gridx = 0;
gc.gridy = 6;
add(new JLabel("Epost: "), gc);
gc.gridx = 0;
gc.gridy = 7;
add(new JLabel("By: "), gc);
gc.gridx = 0;
gc.gridy = 8;
add(new JLabel("ID: "), gc);
gc.gridx = 0;
gc.gridy = 9;
add(new JLabel("Kjonn: "), gc);
gc.gridx = 0;
gc.gridy = 10;
add(new JLabel("Alder: "), gc);
gc.anchor = GridBagConstraints.LINE_START;
gc.gridx = 1;
gc.gridy = 0;
add(fornavntxt1, gc);
gc.gridx = 1;
gc.gridy = 1;
add(etternavntxt1, gc);
gc.gridx = 1;
gc.gridy = 2;
add(firmatxt1, gc);
gc.gridx = 1;
gc.gridy = 3;
add(adressetxt1, gc);
gc.gridx = 1;
gc.gridy = 4;
add(bransjetxt1, gc);
gc.gridx = 1;
gc.gridy = 5;
add(tlftxt1, gc);
gc.gridx = 1;
gc.gridy = 6;
add(eposttxt1, gc);
gc.gridx = 1;
gc.gridy = 7;
add(bytxt1, gc);
gc.gridx = 1;
gc.gridy = 8;
add(nrtxt1, gc);
gc.gridx = 1;
gc.gridy = 9;
add(kjonntxt1, gc);
gc.gridx = 1;
gc.gridy = 10;
add(aldertxt1, gc);
}
}