Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import javax.swing.*;

public class Main {
    public static JOptionPane createMaxLengthOptionPane(final int maxLength) {
        return new JOptionPane() {
            @Override
            public int getMaxCharactersPerLineCount() {
                return maxLength;
            }
        };
    }
}