User talk:Kayns8935

import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets;

import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField;

public class Start {

static GridBagLayout grid = new GridBagLayout; static GridBagConstraints c = new GridBagConstraints; static JFrame f;       public static void main(String[] args) {

f = new JFrame; c.fill = GridBagConstraints.BOTH; c.insets = new Insets(5, 0, 0, 0); f.setLayout(grid); c.weightx = 1; c.gridwidth = GridBagConstraints.REMAINDER; addPanel("Sapphire Djinn"); addPanel("Ruby Djinn"); addPanel("Diamond Djinn"); addPanel("Roaring Ether"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.pack; f.setVisible(true); }       public static void addPanel(String s) { JPanel a = new DropRateTracker(s); grid.setConstraints(a, c); f.add(a); }