I have got two questions on styling a controlP5 Textfield:
1. I
s it possible to change the border color of a controlP5.Controller.Textfield ?
I can change the border color on focus with
.setColorActive("color") but cannot find a similar methode for the "ColorPassive" (.setColor(color) sets the textColor)
can I extend the Textfield und override the color (does someone know which methode to override?)
2. I'd like to set a "padding-left" to the Textfield. I didn't find a methode either.
my workaround is adding a " " to the front of the String.
Would be great, if someone has a solution (especially for the borderColor).
I read, that Proccessing changed the Event Model and now the MouseWheeEventListener doesn't work anymore.
Is the a hack to get a MouseWheel Event in 2.0b7?
(I'm working in Eclipse on OSX 10.7.5, JavaSE 1.7)
I'm using proHtml to find the image tags of a website (guardian.co.uk). that works fine.
the problem is, i get the the Strings lowercase. But I need the src-atrribute in the origianl form (mixedCase) to load the images in my application. does anybody know how i get the right src-attribute?
(to get my application work, I worte a parser my own, but its very slowly.
I would prefer to use the much faster proHtml lib)
i'm trying for the last hours to get the serial library running in eclipse (Eclipse IDE for Java Developers Version 1.2.1.20090918) on macbookpro mac osx 10.6.4 to get connected to my arduino board.
what i've done yet:
i imported the
core.jar
serial.jar
RXTXcomm.jar
copied librxtxSerial.jnilib to MacintoshHD/Library/Java/Extensions/
linked RXTXcomm.jar to librxtxSerial.jnilib (by choosing RXTXcomm.jar - properties - Native library: Location path: /Library/Java/Extensions)
when i run the programm, i get this error:
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib: no suitable image found. Did find: /Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper thrown while loading gnu.io.RXTXCommDriver java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib: no suitable image found. Did find: /Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1045) at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83) at processing.serial.Serial.list(Serial.java:554) at mainClass.setup(mainClass.java:10) at processing.core.PApplet.handleDraw(PApplet.java:1571) at processing.core.PApplet.run(PApplet.java:1496) at java.lang.Thread.run(Thread.java:637) Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.ports() at processing.serial.Serial.errorMessage(Serial.java:588) at processing.serial.Serial.list(Serial.java:569) at mainClass.setup(mainClass.java:10) at processing.core.PApplet.handleDraw(PApplet.java:1571) at processing.core.PApplet.run(PApplet.java:1496) at java.lang.Thread.run(Thread.java:637)
my second try was to use the arduino library with the Arduino Firmata.
same imports und link to librxtxSerial.jnilib
when i run the programm, this window pops up and asks me to chongure gnu.io.rxtx.properties
Now i don't know what to do.
when i just close the window i get the following exception:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/gnu.io.rxtx.SerialPorts
IOException!