001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 * 
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 * 
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.log4j.lf5.viewer;
018
019import java.awt.BorderLayout;
020import java.awt.FlowLayout;
021import java.awt.GridBagLayout;
022
023import javax.swing.JFrame;
024import javax.swing.JPanel;
025
026/**
027 * LogFactor5LoadingDialog
028 *
029 * @author Richard Hurst
030 * @author Brad Marlborough
031 */
032
033// Contributed by ThoughtWorks Inc.
034
035public class LogFactor5LoadingDialog extends LogFactor5Dialog {
036  //--------------------------------------------------------------------------
037  //   Constants:
038  //--------------------------------------------------------------------------
039
040  //--------------------------------------------------------------------------
041  //   Protected Variables:
042  //--------------------------------------------------------------------------
043
044  //--------------------------------------------------------------------------
045  //   Private Variables:
046  //--------------------------------------------------------------------------
047
048  //--------------------------------------------------------------------------
049  //   Constructors:
050  //--------------------------------------------------------------------------
051
052  public LogFactor5LoadingDialog(JFrame jframe, String message) {
053    super(jframe, "LogFactor5", false);
054
055    JPanel bottom = new JPanel();
056    bottom.setLayout(new FlowLayout());
057
058    JPanel main = new JPanel();
059    main.setLayout(new GridBagLayout());
060    wrapStringOnPanel(message, main);
061
062    getContentPane().add(main, BorderLayout.CENTER);
063    getContentPane().add(bottom, BorderLayout.SOUTH);
064    show();
065
066  }
067  //--------------------------------------------------------------------------
068  //   Public Methods:
069  //--------------------------------------------------------------------------
070
071  //--------------------------------------------------------------------------
072  //   Protected Methods:
073  //--------------------------------------------------------------------------
074
075  //--------------------------------------------------------------------------
076  //   Private Methods:
077  //--------------------------------------------------------------------------
078
079  //--------------------------------------------------------------------------
080  //   Nested Top-Level Classes or Interfaces
081  //--------------------------------------------------------------------------
082}