View difference between Paste ID: cRcBjRCj and qJ1iC174
SHOW: | | - or go back to the newest paste.
1-
import java.awt.BorderLayout;
1+
Me.EmployeeTableAdapter.Fill(Me.CaftDatabaseDataSet.Employee)
2-
import java.awt.GridLayout;
2+
3-
import java.awt.event.ActionEvent;
3+
        Dim columns() As String = {"ID", "fname", "lname", "phone"}
4-
import java.awt.event.ActionListener;
4+
5-
import javax.swing.JButton;
5+
        For Each col As DataGridViewColumn In dgvMyView.Columns
6-
import javax.swing.JComboBox;
6+
            For Each header As String In columns
7-
import javax.swing.JFrame;
7+
                Dim y As String = header.ToUpper
8-
import javax.swing.JLabel;
8+
                Dim x As String = col.Name.Substring(0, y.Length).ToUpper
9-
import javax.swing.JOptionPane;
9+
10-
import javax.swing.JPanel;
10+
                If (x.Equals(y)) Then
11-
import javax.swing.JTextField;
11+
                    col.Visible = True
12-
 
12+
                    Exit For
13-
 
13+
                Else
14-
public class ComboBoxAndArray extends JFrame{
14+
                    col.Visible = False
15-
            /// INIT OBJECTS ////////////////////////////////////////////////////////////////////////
15+
                End If
16-
            private String months[] = {"January", "February",  "March",   "April",    "May", "June", "July",
16+
            Next
17-
                                        "August", "September", "October", "November", "December"};
17+
        Next