无法从组件中降低继承方法的可见性

时间:2015-11-21 05:45:49

标签: java

获取项目中的错误

    private void revalidate()
{
    m_pageMax = m_viewPanel.getPageCount();
    spinnerModel.setMaximum(new Integer(m_pageMax));

    //  scroll area (page size dependent)
    centerScrollPane.setPreferredSize(new Dimension
        (m_viewPanel.getPaperWidth()+30, m_viewPanel.getPaperHeight()+15));
    centerScrollPane.getViewport().setViewSize(new Dimension
        (m_viewPanel.getPaperWidth()+2*m_viewPanel.getMarginSize(true),
        m_viewPanel.getPaperHeight()+2*m_viewPanel.getMarginSize(true)));

    //  Report Info
    setTitle(Msg.getMsg(m_ctx, "Report") + ": " + m_reportEngine.getName() + "  " + Env.getHeader(m_ctx, 0));
    StringBuffer sb = new StringBuffer ();
    sb.append(m_viewPanel.getPaper().toString(m_ctx))
        .append(" - ").append(Msg.getMsg(m_ctx, "DataCols")).append("=")
        .append(m_reportEngine.getColumnCount())
        .append(", ").append(Msg.getMsg(m_ctx, "DataRows")).append("=")
        .append(m_reportEngine.getRowCount());
    statusBar.setStatusLine(sb.toString());
    //
    setPage(m_pageNo);
}   //  revalidate

在revalidate方法上获取错误“无法降低从组件继承的方法的可见性”

0 个答案:

没有答案