WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Implementing Your Own Icons | Loop and Break

Implementing Your Own Icons

Here’s a class that implements the Icon interface and uses ovals as simple icons:

import javax.swing.*;
import java.awt.*;

class OvalIcon implements Icon {

	private int width, height;

	public OvalIcon(int w, int h) {
		width = w;
		height = h;
	}

	public void paintIcon(Component c, Graphics g, int x, int y) {
		g.drawOval(x, y, width - 1, height - 1);
	}

	public int getIconWidth() {
		return width;
	}

	public int getIconHeight() {
		return height;
	}
}

public class TestOval {
	public static void main(String[] args) {
		JFrame f = new JFrame();
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		JLabel label1 = new JLabel(new OvalIcon(20, 50));
		JLabel label2 = new JLabel(new OvalIcon(50, 20));
		JLabel label3 = new JLabel("Round!", new OvalIcon(60, 60),
				SwingConstants.CENTER);
		label3.setHorizontalTextPosition(SwingConstants.CENTER);

		Container c = f.getContentPane();
		c.setLayout(new FlowLayout());
		c.add(label1);
		c.add(label2);
		c.add(label3);
		f.pack();
		f.setVisible(true);
	}
}
Share

You may also like...