Skip to content

Commit

Permalink
Handling enabling of caption field based on protocol version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Oct 13, 2002
1 parent cc5dc06 commit 90f276d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions com/gallery/GalleryRemote/PictureInspector.java
Expand Up @@ -273,9 +273,11 @@ public void setPictures( Object[] pictures ) {
icon.setIcon( mf.getThumbnail( p ) );
path.setText( p.getSource().getParent() );
album.setText( p.getAlbum().getTitle() );
caption.setText( p.getCaption() );
caption.setEditable(true);
caption.setBackground(UIManager.getColor("TextField.background"));
if (p.getAlbum().getGallery().getComm() instanceof GalleryComm2) {
caption.setText( p.getCaption() );
caption.setEditable(true);
caption.setBackground(UIManager.getColor("TextField.background"));
}
size.setText( NumberFormat.getInstance().format(
(int) p.getFileSize() ) + " bytes" );

Expand Down Expand Up @@ -307,6 +309,7 @@ public void setEnabled(boolean enabled) {
up.setEnabled(enabled);
down.setEnabled(enabled);
delete.setEnabled(enabled);
caption.setEnabled(enabled);

super.setEnabled(enabled);
}
Expand Down

0 comments on commit 90f276d

Please sign in to comment.