mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-11-25 16:34:00 +00:00
tidying
This commit is contained in:
parent
47a07f5cfe
commit
59b22be2bd
@ -23,7 +23,6 @@ public class SHRPictureFile1 extends HiResImage
|
||||
// ---------------------------------------------------------------------------------//
|
||||
{
|
||||
super (name, buffer, fileType, auxType, eof);
|
||||
System.out.println ("here");
|
||||
|
||||
int ptr = 0;
|
||||
while (ptr < buffer.length)
|
||||
@ -243,7 +242,8 @@ public class SHRPictureFile1 extends HiResImage
|
||||
if (ptr < data.length - 32)
|
||||
colorTables[i] = new ColorTable (i, data, ptr);
|
||||
else
|
||||
colorTables[i] = new ColorTable (i, 0x00); // default empty table !! not finished
|
||||
colorTables[i] = new ColorTable (i, 0x00); // default empty table !! not
|
||||
// finished
|
||||
ptr += 32;
|
||||
}
|
||||
}
|
||||
@ -354,7 +354,8 @@ public class SHRPictureFile1 extends HiResImage
|
||||
|
||||
// -------------------------------------------------------------------------------//
|
||||
// private boolean isOddAndEmpty (byte[] buffer)
|
||||
// // -------------------------------------------------------------------------------//
|
||||
// //
|
||||
// -------------------------------------------------------------------------------//
|
||||
// {
|
||||
// if (buffer.length % 2 == 0)
|
||||
// return false;
|
||||
|
@ -52,7 +52,7 @@ public class DiskBrowser extends JFrame
|
||||
{
|
||||
super (windowTitle);
|
||||
|
||||
UIManager.put ("TabbedPane.foreground", Color.BLACK); // java bug fix
|
||||
// UIManager.put ("TabbedPane.foreground", Color.BLACK); // java bug fix
|
||||
|
||||
if (args.length > 0 && "-reset".equals (args[0]))
|
||||
new WindowState (prefs).clear ();
|
||||
|
@ -38,9 +38,15 @@ public class EnvironmentAction extends AbstractAction
|
||||
textFormatter.addLine ("Java version", System.getProperty ("java.runtime.version"));
|
||||
textFormatter.addLine ();
|
||||
|
||||
String userHome = System.getProperty ("user.home");
|
||||
|
||||
String path = System.getProperty ("java.class.path");
|
||||
for (String s : path.split (File.pathSeparator))
|
||||
{
|
||||
if (s.startsWith (userHome))
|
||||
s = "~" + s.substring (userHome.length ());
|
||||
textFormatter.addLine ("Classpath", s);
|
||||
}
|
||||
|
||||
JOptionPane.showMessageDialog (null, textFormatter.toLabel (), "Java Environment",
|
||||
JOptionPane.INFORMATION_MESSAGE);
|
||||
|
Loading…
Reference in New Issue
Block a user