This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bazz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bazz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bazz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Desires the direction. | |
/// </summary> | |
/// <returns> | |
/// The direction. | |
/// </returns> | |
/// <param name='direction'> | |
/// If set to <c>true</c> direction. | |
/// </param> | |
bool DesireDirection(Direction direction) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |