← Back to team overview

sikuli-driver team mailing list archive

[Bug 1220575] Re: [1.0.1] Linux: Matching preview not working

 

I fixed locally the other problem with the slider being squeezed:

org.sikuli.ide.PatternPaneScreenshot.createControls()

The GridBagConstraints were not ideal.  I only tested this on Linux.


GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
gridBagConstraints1.fill = GridBagConstraints.BOTH;
gridBagConstraints1.gridy = 0;
pane.add(btnSimilar, gridBagConstraints1);
    
GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
gridBagConstraints2.fill = GridBagConstraints.BOTH;
gridBagConstraints2.weightx = 1.0;
gridBagConstraints2.gridy = 1;
pane.add(sldSimilar, gridBagConstraints2);

Could you add these fixes to 1.0.1? My team will be working with this
version until you release the next version.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1220575

Title:
  [1.0.1] Linux: Matching preview not working

Status in Sikuli:
  In Progress

Bug description:
  This is a Linux only issue (java version "1.7.0_25")

  Open IDE editor, click a image saved before.  Click "Matching
  Preview",  it will not work. You can got error message from console:

  Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Color parameter outside of expected range: Alpha
  at java.awt.Color.testColorValueRange(Unknown Source)
  at java.awt.Color.<init>(Unknown Source)
  at org.sikuli.ide.PatternSimilaritySlider.getScoreColor(PatternSimilaritySlider.java:59)
  at org.sikuli.ide.PatternSimilaritySlider.paintComponent(PatternSimilaritySlider.java:37)
  at javax.swing.JComponent.paint(Unknown Source)
  ... more

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1220575/+subscriptions


References