public void restButtons(String type) {
		ResultSet rs = null;
		for (JButton but : restButtons) {
			this.remove(but);
		}
		restButtons.clear();
		try {
			db = new JDBC();
			rs = db.getRestByType(type);
			int x = 200;
			int y = 65;
			int count = 0;
			while (rs.next()) {
				String str = rs.getString("name");
				JButton btnx = new JButton(str);
				if (str.length() > 11) {
					btnx.setFont(new Font("Arial", Font.PLAIN, 8));
				} else if (str.length() > 6) {
					btnx.setFont(new Font("Arial", Font.PLAIN, 11));
				} else {
					btnx.setFont(new Font("Arial", Font.PLAIN, 14));
				}
				restButtons.add(btnx);
				count++;
				if (count > 4) {
					y += 50;
					x = 200;
					btnx.setBounds(x, y, 100, 30);
					count = 1;
				} else {
					btnx.setBounds(x, y, 100, 30);
				}
				x += 115;
				ButtonResponder br = new ButtonResponder();
				btnx.addActionListener(br);
				this.add(btnx);
				repaint();
			}
		} catch (Exception e) {
			System.out.println("SQL Statement Failed.. probably");
			e.printStackTrace();
		}
		;
		db.closeDb();
	}