Ignore:
Timestamp:
2008-04-24T13:40:21+12:00 (16 years ago)
Author:
oranfry
Message:

Lots of changes to the installer. Now only look in LanguagePack resource bundle for strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/ant-installer/src/org/tp23/antinstaller/renderer/swing/LicensePageRenderer.java

    r14982 r15210  
    4343    extends SwingPageRenderer {
    4444
    45     private static final ResourceBundle res = ResourceBundle.getBundle("org.tp23.antinstaller.renderer.Res");
     45    private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack");
    4646
    4747    private JTextArea licenseTextArea = new JTextArea();
     
    5959        InputStream licensein = this.getClass().getResourceAsStream(resource);
    6060        if (licensein == null) {
     61            //delete me
     62            System.out.println( "licensein is null" );
    6163            throw new ConfigurationException("License resource '" + resource + "' is missing from installer");
    6264        }
     
    7981        scrollPane.getViewport().add(licenseTextArea);
    8082        scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    81         scrollPane.setBorder(BorderFactory.createCompoundBorder(
    82                         BorderFactory.createEmptyBorder(4, 4, 4, 4),
    83                         BorderFactory.createEtchedBorder()));
     83
     84        scrollPane.setBorder(
     85            BorderFactory.createCompoundBorder(
     86                BorderFactory.createEmptyBorder(4, 4, 4, 4),
     87                BorderFactory.createEtchedBorder()
     88                )
     89            );
    8490        this.add(scrollPane, BorderLayout.CENTER);
    8591
    86         getNextButton().setText( res.getString( "license.next.text" ) );
    87         getNextButton().setIcon(getImage("/resources/icons/ok.png"));
    88         getCancelButton().setText( res.getString( "license.cancel.text" ) );
     92        getNextButton().setText( res.getString( "license.next.text" ) );
     93        getNextButton().setIcon(getImage("/resources/icons/ok.png"));
     94        getCancelButton().setText( res.getString( "license.cancel.text" ) );
    8995
    9096    }
Note: See TracChangeset for help on using the changeset viewer.