-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugs in stable components... And few suggestions #124
Comments
This code demonstrate the above mentioned bug (bug no. 2) public class WebPopupTestFrame extends JFrame implements ActionListener {
/**
* Serial version ID
*/
private static final long serialVersionUID = 1L;
private WebToggleButton showTipsAndTrics;
private WebPopOver tipsAndTricksPopup;
public WebPopupTestFrame() {
setSize(500, 300);
setTitle("This is a test");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
showTipsAndTrics = new WebToggleButton("Tips");
showTipsAndTrics.setRolloverDecoratedOnly(true);
showTipsAndTrics.setRound(0);
showTipsAndTrics.setFocusable(false);
showTipsAndTrics.setDrawFocus(false);
showTipsAndTrics.setSelected(true);
showTipsAndTrics.addActionListener(this);
WebStatusBar panel = new WebStatusBar();
panel.add(showTipsAndTrics, ToolbarLayout.END);
getContentPane().add(panel, BorderLayout.SOUTH);
JPanel panel_1 = new JPanel();
getContentPane().add(panel_1, BorderLayout.CENTER);
}
@Override
public void actionPerformed(ActionEvent ae) {
if (showTipsAndTrics.isSelected()) {
showTipsAndTrics();
} else {
hideTipsAndTricsPopup();
}
}
public void showTipsAndTrics() {
tipsAndTricksPopup = new WebPopOver(showTipsAndTrics);
tipsAndTricksPopup.setModal(false);
tipsAndTricksPopup.setMargin(10);
tipsAndTricksPopup.setMovable(false);
tipsAndTricksPopup.setLayout(new VerticalFlowLayout());
final GroupPanel panel1 = new GroupPanel(4, new WebLabel(
"1. Press anytime "), new WebHotkeyLabel("F1"), new WebLabel(
" for descriptive help"));
tipsAndTricksPopup.add(panel1);
final GroupPanel panel3 = new GroupPanel(4, new WebLabel(
"2. Press anytime "), new WebHotkeyLabel("Ctrl + S"),
new WebLabel(" to save the details"));
tipsAndTricksPopup.add(panel3);
final GroupPanel panel4 = new GroupPanel(4, new WebLabel(
"3. Press anytime "), new WebHotkeyLabel("Ctrl + P"),
new WebLabel(" to print the details"));
tipsAndTricksPopup.add(panel4);
WebButton closeButton = new WebButton("Close", new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
hideTipsAndTricsPopup();
}
});
WebButton prevTip = new WebButton("Previous");
WebButton nextTip = new WebButton("Next");
WebButtonGroup navigationButtonGroup = new WebButtonGroup(true,
prevTip, nextTip, closeButton);
navigationButtonGroup.setButtonsDrawFocus(false);
JPanel buttonsPanel = new JPanel();
buttonsPanel.setOpaque(false);
buttonsPanel.setBorder(null);
FlowLayout buttonPanelLyt = new FlowLayout(FlowLayout.RIGHT);
buttonPanelLyt.setHgap(0);
buttonsPanel.setLayout(buttonPanelLyt);
buttonsPanel.add(navigationButtonGroup);
tipsAndTricksPopup.add(buttonsPanel);
tipsAndTricksPopup.show(showTipsAndTrics);
}
public void hideTipsAndTricsPopup() {
if (tipsAndTricksPopup != null) {
tipsAndTricksPopup.dispose();
}
showTipsAndTrics.setSelected(false);
}
public static void main(String[] args) {
WebPopupTestFrame frameObj = new WebPopupTestFrame();
frameObj.setVisible(true);
frameObj.showTipsAndTrics();
}
} |
I tried the example and didn't notice nor the bug you mentioned neither anything else. Probably there was something else that caused the issue.
I have published a temporary v1.28 build here: P.S. And thanks for the full code example anyway :) |
Some fixes and changes are now available in v1.28 update: |
I guess the only issue left is the components import into window-builder. |
I was trying to use symbolic font for button in button-popup, it shows what I want but when popup is show it shows a block instead of my desired symbol. (Note: I am using font from package, same font is installed on system also)
I was testing modal popup in pop-over dialog and found minor bug. When dialog is showing on screen I minimized frame and dialog is just disappeared on opening frame. (Note: I have made dialog non-modal i.e. setModal(false); )
I am not able to import components in window-builder. When i tried to do that it shows message that manifest file is not proper and shows all classes from show so I have to choose them manually.
In web collapsible pane I have to press key for 2 / 3 times to transfer focus on next component, and also it shows me two different focused components one that I added in center and collapsible pane which looks so bad.
there is no flexibility to set the color for mouse over for button. I used shine color but i want different upper and bottom colors.
Related forum topic:
http://weblookandfeel.com/forum/viewtopic.php?f=4&t=194
The text was updated successfully, but these errors were encountered: