Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New frame to display properties of a Picture, and actions on the pict…
…ure.
- Loading branch information
Pierre-Luc Paour
committed
Aug 17, 2002
1 parent
b1847b9
commit 6b7f355
Showing
1 changed file
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/* | ||
* Gallery Remote - a File Upload Utility for Gallery | ||
* | ||
* Gallery - a web based photo album viewer and editor | ||
* Copyright (C) 2000-2001 Bharat Mediratta | ||
* | ||
* This program 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 2 of the License, or (at | ||
* your option) any later version. | ||
* | ||
* This program 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 this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
*/ | ||
package com.gallery.GalleryRemote; | ||
|
||
import java.awt.*; | ||
import java.awt.event.*; | ||
import javax.swing.*; | ||
import javax.swing.border.*; | ||
import javax.swing.event.*; | ||
import com.gallery.GalleryRemote.model.*; | ||
|
||
/** | ||
* Bean inspector for Pictures | ||
* | ||
*@author paour | ||
*@created August 16, 2002 | ||
*/ | ||
public class PictureInspector extends JPanel | ||
{ | ||
GridBagLayout gridBagLayout4 = new GridBagLayout(); | ||
JLabel inspIcon = new JLabel(); | ||
JLabel jLabel5 = new JLabel(); | ||
JLabel inspPath = new JLabel(); | ||
JLabel jLabel6 = new JLabel(); | ||
JLabel inspAlbum = new JLabel(); | ||
JLabel Caption = new JLabel(); | ||
JLabel jLabel4 = new JLabel(); | ||
JLabel inspCaption = new JLabel(); | ||
JButton up = new JButton(); | ||
JLabel jLabel8 = new JLabel(); | ||
JButton down = new JButton(); | ||
JPanel spacer = new JPanel(); | ||
|
||
|
||
/** | ||
* Constructor for the PictureInspector object | ||
*/ | ||
public PictureInspector() { | ||
try { | ||
jbInit(); | ||
} catch ( Exception e ) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
|
||
|
||
private void jbInit() | ||
throws Exception { | ||
setLayout( gridBagLayout4 ); | ||
inspIcon.setHorizontalAlignment( SwingConstants.CENTER ); | ||
inspIcon.setHorizontalTextPosition( SwingConstants.CENTER ); | ||
inspIcon.setText( "icon" ); | ||
inspIcon.setVerticalTextPosition( SwingConstants.BOTTOM ); | ||
jLabel5.setText( "Path:" ); | ||
inspPath.setText( "path" ); | ||
jLabel6.setText( "Album:" ); | ||
inspAlbum.setText( "album" ); | ||
jLabel4.setText( "Caption:" ); | ||
inspCaption.setText( "caption" ); | ||
up.setMinimumSize( new Dimension( 89, 23 ) ); | ||
up.setPreferredSize( new Dimension( 89, 23 ) ); | ||
up.setText( "Move up" ); | ||
jLabel8.setText( "Move:" ); | ||
down.setText( "Move down" ); | ||
add( inspIcon, new GridBagConstraints( 0, 0, 2, 1, 1.0, 0.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
add( jLabel5, new GridBagConstraints( 0, 1, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 0 ), 2, 0 ) ); | ||
add( inspPath, new GridBagConstraints( 1, 1, 1, 1, 1.0, 0.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
add( jLabel6, new GridBagConstraints( 0, 2, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 0 ), 2, 0 ) ); | ||
add( inspAlbum, new GridBagConstraints( 1, 2, 1, 1, 1.0, 0.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
add( Caption, new GridBagConstraints( 0, 4, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
add( jLabel4, new GridBagConstraints( 0, 3, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 0 ), 2, 0 ) ); | ||
add( inspCaption, new GridBagConstraints( 1, 3, 1, 1, 1.0, 0.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
add( up, new GridBagConstraints( 1, 5, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
add( jLabel8, new GridBagConstraints( 0, 5, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 0 ), 2, 0 ) ); | ||
add( down, new GridBagConstraints( 1, 6, 1, 1, 0.0, 0.0 | ||
, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
add( spacer, new GridBagConstraints( 0, 7, 2, 1, 1.0, 1.0 | ||
, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets( 0, 0, 0, 0 ), 0, 0 ) ); | ||
} | ||
} | ||
|