Esempio n. 1
0
  private Composite createWinToolBar(Composite composite) {
    Composite winToolbar = new Composite(composite, SWT.NONE);
    winToolbar.setLayoutData(new RowData(850, 88));

    TabButton button1 =
        new TabButton(winToolbar, SWT.NONE, true, "/res/tab_button_SoftCenter.png", 3, null, this);
    button1.setBounds(20, 0, 74, 82);
    TabButton button2 =
        new TabButton(winToolbar, SWT.NONE, false, "/res/tab_button_AppCenter.png", 3, null, this);
    button2.setBounds(20 + 74 + 5, 0, 74, 82);
    TabButton button3 =
        new TabButton(winToolbar, SWT.NONE, false, "/res/tab_button_GameCenter.png", 3, null, this);
    button3.setBounds(20 + 74 * 2 + 5, 0, 74, 82);
    TabButton button4 =
        new TabButton(winToolbar, SWT.NONE, false, "/res/tab_button_Update.png", 3, null, this);
    button4.setBounds(20 + 74 * 3 + 5, 0, 74, 82);
    TabButton button5 =
        new TabButton(winToolbar, SWT.NONE, false, "/res/tab_button_Uninstall.png", 3, null, this);
    button5.setBounds(20 + 74 * 4 + 5, 0, 74, 82);
    TabButton button6 =
        new TabButton(
            winToolbar, SWT.NONE, false, "/res/tab_button_StartupAccelerate.png", 3, null, this);
    button6.setBounds(20 + 74 * 5 + 5, 0, 74, 82);
    TabButton button7 =
        new TabButton(
            winToolbar, SWT.NONE, false, "/res/tab_button_MobileEssential.png", 3, null, this);
    button7.setBounds(20 + 74 * 6 + 5, 0, 74, 82);

    Label logoLabel = new Label(winToolbar, SWT.NONE);
    logoLabel.setBounds(690, 5, 140, 67);
    logoLabel.setImage(SWTResourceManager.getImage(getClass(), "/res/logo.png"));

    return winToolbar;
  }