Hi,

First of all, you made a very powerful and decent DocBook editor.

There are some (more or less) minor problems with the GUI that make XMLmind 
look not so good as it might be (unsorted):

- some menu items in the menus have icons, some not => therefor they look 
unaligned
   => solution: give all menu items icons (at least a transparent one of 
the same size)

- at least the option dialog can be made smaller as it's minimum size
   => solution: overwrite the createRootPane() method in JDialog and create 
a different JRootPane (see attached QRootPane.java)

- please make the default font size editable for each font family separately

- if possible, provide a source view of the edited XML, too

Cheers,
Tom
-------------- next part --------------
import java.awt.*;
import javax.swing.*;

public class QRootPane extends JRootPane {

        private final Window window;

        public QRootPane(Window window) {
                this.window = window;
        }

        public void reshape(int x, int y, int width, int height) {
                Dimension prefSize = getPreferredSize();
                if (width < prefSize.width
                 || height < prefSize.height) {
                        Dimension size = window.getSize();
                        if (width < prefSize.width) {
                                size.width = (size.width - width) + 
prefSize.width;
                                width = prefSize.width;
                        }
                        if (height < prefSize.height) {
                                size.height = (size.height - height) + 
prefSize.height;
                                height = prefSize.height;
                        }
                        window.setSize(size);
                }
                super.reshape(x, y, width, height);
        }
}

Reply via email to