Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.awt.*;

public class Main {
    public static void setPreferredWidth(Component c, int width) {
        c.setPreferredSize(new Dimension(width, c.getPreferredSize().height));
    }
}