package devopsdistilled.operp.client.abstracts;

import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.SwingConstants;

public abstract class TaskPane extends ViewPane {

	@Override
	public abstract String toString();
	
	public  Icon SetSizeForImage(ImageIcon icon){
		Image img=icon.getImage();
		BufferedImage bi=new BufferedImage(70, 60, BufferedImage.TYPE_INT_ARGB);
		Graphics g=bi.createGraphics();
		g.drawImage(img,0,0,70,60, null);
		Icon newIcon=new ImageIcon(bi);
		return newIcon;
		
	}
	
	public JButton SetButtonSize(JButton btn){
		btn.setMaximumSize(new Dimension(90, 90));
		btn.setMinimumSize(new Dimension(90,90));
		btn.setHorizontalTextPosition(SwingConstants.CENTER);
		btn.setVerticalTextPosition(SwingConstants.BOTTOM);
		btn.setFont(new Font("Arial", Font.PLAIN, 10));
		return btn;
	}

}

@@ -46,953 +46,106 @@
 s;%0A%0A
-import java.awt.Dimension;%0Aimport java.awt.Font;%0Aimport java.awt.Graphics;%0Aimport java.awt.Image;%0Aimport java.awt.image.BufferedImage;%0A%0Aimport javax.swing.Icon;%0Aimport javax.swing.ImageIcon;%0Aimport javax.swing.JButton;%0Aimport javax.swing.SwingConstants;%0A%0Apublic abstract class TaskPane extends ViewPane %7B%0A%0A%09@Override%0A%09public abstract String toString();%0A%09%0A%09public  Icon SetSizeForImage(ImageIcon icon)%7B%0A%09%09Image img=icon.getImage();%0A%09%09BufferedImage bi=new BufferedImage(70, 60, BufferedImage.TYPE_INT_ARGB);%0A%09%09Graphics g=bi.createGraphics();%0A%09%09g.drawImage(img,0,0,70,60, null);%0A%09%09Icon newIcon=new ImageIcon(bi);%0A%09%09return newIcon;%0A%09%09%0A%09%7D%0A%09%0A%09public JButton SetButtonSize(JButton btn)%7B%0A%09%09btn.setMaximumSize(new Dimension(90, 90));%0A%09%09btn.setMinimumSize(new Dimension(90,90));%0A%09%09btn.setHorizontalTextPosition(SwingConstants.CENTER);%0A%09%09btn.setVerticalTextPosition(SwingConstants.BOTTOM);%0A%09%09btn.setFont(new Font(%22Arial%22, Font.PLAIN, 10));%0A%09%09return btn;%0A%09%7D
+%0Apublic abstract class TaskPane extends ViewPane %7B%0A%0A%09@Override%0A%09public abstract String toString();
 %0A%0A%7D%0A

Remove SetButton Size functionalities from class "TaskPane"