This commit is contained in:
Denis Molony 2021-09-16 18:24:13 +10:00
parent 47a07f5cfe
commit 59b22be2bd
3 changed files with 36 additions and 29 deletions

View File

@ -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;

View File

@ -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 ();

View File

@ -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);