Skip to content

Instantly share code, notes, and snippets.

class CheckTreeManager < Java::java::awt::event::MouseAdapter
include_class 'javax.swing.tree.DefaultTreeSelectionModel'
include_class 'javax.swing.JCheckBox'
include Java::javax::swing::event::TreeSelectionListener
#include Java::javax::swing::event::MouseInputListener
CHECKBOX_WIDTH = JCheckBox.new.preferred_size.width
def initialize(tree)
@tree = tree
package swing;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JCheckBox;
import javax.swing.JTree;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultTreeSelectionModel;
import javax.swing.tree.TreePath;
class CheckTreeManager < Java::java::awt::event::MouseAdapter
include_class 'javax.swing.tree.DefaultTreeSelectionModel'
include_class 'javax.swing.JCheckBox'
include Java::javax::swing::event::TreeSelectionListener
#include Java::javax::swing::event::MouseInputListener
CHECKBOX_WIDTH = JCheckBox.new.preferred_size.width
def initialize(tree)
super()
# New users using Netbeans will need to know that the GroupLayout (aka FreeDesign) is a picky layout that demands
# constraints while adding components. By default, all containers use GroupLayout in Netbeans's GUI builder. If you're
# not sure what all this means, just start off with a BoxLayout (which is not picky). If your layout needs constraints,
# you will need to pass them in with your Method Nesting. Some layouts even need @main_view_component#revalidate to be
# called. In short, be aware of Swing's quirks.
@LoganBarnett
LoganBarnett / foo
Created November 24, 2010 18:22
bar
bazz
bazz
bazz
/// <summary>
/// Desires the direction.
/// </summary>
/// <returns>
/// The direction.
/// </returns>
/// <param name='direction'>
/// If set to <c>true</c> direction.
/// </param>
bool DesireDirection(Direction direction) {
Test method HX.Web.Test.ContactTest.CreateContactTest threw exception:
OpenQA.Selenium.WebDriverException: Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 172.21.38.5:7055
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) in C:\Users\remi\projects\selenium\remote\client\src\csharp\webdriver-remote-client\HttpCommandExecutor.cs:line 76
at Ope
noise = Perlin()
values = List[of single]()
for y in range(0, terrainData.heightmapHeight):
lerp = cast(single, y) / (terrainData.heightmapHeight)
height = noise.Noise(lerp * bumpiness)
values.Add(height)