/*
This file is part of leafdigital leafChat.
leafChat is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
leafChat is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with leafChat. If not, see <http://www.gnu.org/licenses/>.
Copyright 2011 Samuel Marshall.
*/
package com.leafdigital.ui;
/*
import java.awt.*;
import java.awt.image.BufferedImage;
import javax.swing.*;
import leafchat.util.api.GraphicsUtils;
*/
/**
*/
public class Test
{
/* public static void main(String[] args)
{
// Set L&F
try
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e)
{
e.printStackTrace();
}
// new Test();
//new Test2();
// Get fontrendercontext
JFrame f=new JFrame("UI test");
SwitchBar sb=new SwitchBar();
InternalDesktop id=new InternalDesktop(sb);
f.getContentPane().setLayout(new BorderLayout());
f.getContentPane().add(id,BorderLayout.CENTER);
f.getContentPane().add(sb,BorderLayout.SOUTH);
f.setSize(800,600);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
GraphicsUtils.setFontRenderContext(((Graphics2D)f.getGraphics()).getFontRenderContext());
FrameContents fc=new FrameContents("Untitled 1",new Dimension(400,200),null);
new FrameInside(id,fc);
BufferedImage biSilly=new BufferedImage(64,64,BufferedImage.TYPE_INT_ARGB);
Graphics2D g2=biSilly.createGraphics();
g2.setColor(Color.white);
g2.drawRect(0,0,63,63);
g2.drawRect(1,1,61,61);
g2.drawRect(2,2,59,59);
g2.drawRect(3,3,57,57);
g2.setColor(Color.green);
g2.fillRect(4,32,56,28);
FrameContents fc2=new FrameContents("Untitled 2",new Dimension(400,200),biSilly);
new FrameInside(id,fc2);
}*/
}