Ring Segments (as Shapes) in Java2D

Hi!
I have a problem regarding generation of ring segments in Java2D:
The segment I would like to create should not be a simple Arc2D, but actually a shape
that I can fill, scale etc. like a ring-chart segment.
I have tried creating two arc segments with equal start-degree / end-degree values and differing radii
and then connecting them to a shape. The problem is, that I can't connect the arcs' endpoints and
startpoints - only endpoint of arc1 to startpoint of arc2, which is not what I need.
Is it possible to "reverse" an Arc - such as creating an arc starting at 40� and extending -20� ?
When I try this I always seem to get an "invisible" arc whose endpoints won't connect to a full shape !?
Any thoughts or solutions would be greatly appreciated.
Andreas

One way is to use a fat Stroke together with the Arc2D to generate the shape. Create a BasicStroke of the appropriate width (difference between the inner and outer radii) and pass your arc to the stroke's createStrokedShape method.

Similar Messages

  • How do I make an object look like it is inside of a ring??

    I want to have an oval shaped picture hugged by a ring so that the ring goes around the back of the picture and over the front of it.

    To do this entirely in ID you'd need to draw the ring as a shape or path with the part behind the image missing and palce it in front of the image. Illustrator's patfinder tools are a little more sophiticated and might make it easier to isolate the part that goes behind, but you'd still need to to essentially the same thing.

  • Convert shape created from masks into it's own shape or mask?

    Hi everyone.
    I've created a shape layer (an ellipse) and used a couple different masks to create a more unique shape. Now, I'd like to extrude that shape into 3D, but as you may know, the ray-tracer doesn't support masks.
    So I'm wondering, how would you convert this new shape into an actual shape that uses no masks? I'd like it to be it's own shape or at least have a path that resembles he new shape I created from the shape layer and those masks.
    Any idea how to do this? Thanks.

    I'd like to extrude these shapes.
    http://content.screencast.com/users/Dreamcube017/folders/Jing/media/94b498bd-8ac2-41b4-ba3 0-e87276a546d7/AE%20Shapes.png
    Now I know these are made from solids, but the original is an ellipse mask with some other masks drawn over it.
    I was able to make these same half rings with a shape layer and some masks. I'd ultimately like to make that shape a shape layer of its own with no masks so that I can extrude it in 3D.
    I wish there was some sort of magic wand tool that would let me select the shape, save the selection as a path, then use that... man I really have to go into a whole nother program to do this? Geeze.
    Thanks guys.

  • Drawing like ball shapes

    hi all,
    it is possible to draw Like ball shapes using java2D(it looks like ball)?plz help me.
    thanks in advance
    bye
    kishore naidu

    (it looks like ball)?for a flat circle you can usepublic void paintComponent(Graphics g) {
       g.setColor(Color.red);
       g.fillOval(x,y,r,r);
    }is this what you mean?
    asjf

  • Netbeans 5.0 crashes... please help..

    Hi, i just installed netbeans 5.0 with the latest java package. When i first execute the program, it crashes. Below is the error log. Can anyone help me? This is not the first time. I already uninstall and reinstall java and reinstalling netbeans. This same outcome.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00d18280, pid=3352, tid=3872
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
    # Problematic frame:
    # J java.awt.GradientPaintContext.clipFillRaster([IIIIIDDD)V
    --------------- T H R E A D ---------------
    Current thread (0x030081e0): JavaThread "AWT-EventQueue-1" [_thread_in_Java, id=3872]
    siginfo: ExceptionCode=0xc0000005, reading address 0xffffffff
    Registers:
    EAX=0x1cadd928, EBX=0x00000000, ECX=0x1cb53c80, EDX=0x00000000
    ESP=0x0365e4f8, EBP=0x0365e528, ESI=0x00000000, EDI=0x00000020
    EIP=0x00d18280, EFLAGS=0x00010246
    Top of Stack: (sp=0x0365e4f8)
    0x0365e4f8: 00000000 00000000 00000000 00000000
    0x0365e508: 00ad29fa 00000001 1cadd934 00000000
    0x0365e518: 00000000 ffffffff 1c71c71c 3fbc71c7
    0x0365e528: 0365e588 00d8e3eb 1c71c71c 3fac71c7
    0x0365e538: 00000000 00000000 1c71c71c 3fbc71c7
    0x0365e548: 00000000 00000020 00000000 00000000
    0x0365e558: 1cadd928 1cb53c80 0365e5ac 00000000
    0x0365e568: 00000000 1cadd928 00000000 00000000
    Instructions: (pc=0x00d18280)
    0x00d18270: dd 45 18 dd 5d f8 8b 7d 24 dd 45 f8 d9 ee d9 c9
    0x00d18280: df e9 dd c0 d9 f7 0f 8a 06 00 00 00 0f 86 0e 00
    Stack: [0x03620000,0x03660000), sp=0x0365e4f8, free space=249k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    J java.awt.GradientPaintContext.clipFillRaster([IIIIIDDD)V
    J java.awt.GradientPaintContext.getRaster(IIII)Ljava/awt/image/Raster;
    J sun.java2d.pipe.AlphaPaintPipe.renderPathTile(Ljava/lang/Object;[BIIIIII)V
    j sun.java2d.pipe.SpanShapeRenderer$Composite.renderBox(Ljava/lang/Object;IIII)V+15
    j sun.java2d.pipe.SpanShapeRenderer.spanClipLoop(Ljava/lang/Object;Lsun/java2d/pipe/SpanIterator;Lsun/java2d/pipe/Region;[I)V+56
    j sun.java2d.pipe.SpanShapeRenderer.renderSpans(Lsun/java2d/SunGraphics2D;Lsun/java2d/pipe/Region;Ljava/awt/Shape;Lsun/java2d/pipe/ShapeSpanIterator;)V+131
    j sun.java2d.pipe.SpanShapeRenderer.renderPath(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+43
    j sun.java2d.pipe.SpanShapeRenderer.fill(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+33
    j sun.java2d.pipe.PixelToShapeConverter.fillPolygon(Lsun/java2d/SunGraphics2D;[I[II)V+14
    j sun.java2d.pipe.ValidatePipe.fillPolygon(Lsun/java2d/SunGraphics2D;[I[II)V+17
    j sun.java2d.SunGraphics2D.fillPolygon([I[II)V+8
    j java.awt.Graphics.fillPolygon(Ljava/awt/Polygon;)V+13
    j org.netbeans.swing.tabcontrol.plaf.WinXPEditorTabCellRenderer.paintGradient(Ljava/awt/Graphics;Lorg/netbeans/swing/tabcontrol/plaf/WinXPEditorTabCellRenderer;Lorg/netbeans/swing/tabcontrol/plaf/TabPainter;)V+39
    j org.netbeans.swing.tabcontrol.plaf.WinXPEditorTabCellRenderer.access$700(Ljava/awt/Graphics;Lorg/netbeans/swing/tabcontrol/plaf/WinXPEditorTabCellRenderer;Lorg/netbeans/swing/tabcontrol/plaf/TabPainter;)V+3
    j org.netbeans.swing.tabcontrol.plaf.WinXPEditorTabCellRenderer$WinXPPainter.paintInterior(Ljava/awt/Graphics;Ljava/awt/Component;)V+8
    j org.netbeans.swing.tabcontrol.plaf.AbstractTabCellRenderer.paintComponent(Ljava/awt/Graphics;)V+27
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+260
    j org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+404
    j javax.swing.plaf.ComponentUI.update(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+32
    j javax.swing.JComponent.paintComponent(Ljava/awt/Graphics;)V+26
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+260
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    j org.netbeans.core.windows.view.ui.MultiSplitPane.paint(Ljava/awt/Graphics;)V+2
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    j javax.swing.JLayeredPane.paint(Ljava/awt/Graphics;)V+73
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    j javax.swing.JLayeredPane.paint(Ljava/awt/Graphics;)V+73
    J javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
    j javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+174
    j javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z+131
    J javax.swing.JComponent._paintImmediately(IIII)V
    j javax.swing.JComponent.paintImmediately(IIII)V+83
    j javax.swing.RepaintManager.paintDirtyRegions()V+314
    j javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
    j java.awt.event.InvocationEvent.dispatch()V+47
    j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
    J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    V [jvm.dll+0x845a9]
    V [jvm.dll+0xd9317]
    V [jvm.dll+0x8447a]
    V [jvm.dll+0x841d7]
    V [jvm.dll+0x9ed69]
    V [jvm.dll+0x109fe3]
    V [jvm.dll+0x109fb1]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb50b]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x02d1d188 JavaThread "Image Fetcher 1" daemon [_thread_blocked, id=216]
    0x02d00d90 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=3472]
    0x0302df18 JavaThread "Inactive RequestProcessor thread [Was:Parsing Event Queue/org.netbeans.modules.javacore.JMManager$5]" daemon [_thread_blocked, id=3532]
    0x032ac270 JavaThread "Inactive RequestProcessor thread [Was:Default RequestProcessor/org.netbeans.modules.editor.errorstripe.AnnotationView$RepaintTask]" daemon [_thread_blocked, id=2444]
    0x032d7dd0 JavaThread "Inactive RequestProcessor thread [Was:Default RequestProcessor/org.netbeans.modules.navigator.NavigatorController$ActNodeSetter]" daemon [_thread_blocked, id=2364]
    0x02f42500 JavaThread "Inactive RequestProcessor thread [Was:ToolTip-Evaluator/org.netbeans.modules.editor.NbToolTip$Request]" daemon [_thread_blocked, id=1060]
    0x02ced900 JavaThread "Inactive RequestProcessor thread [Was:Overriddens Queue/org.netbeans.modules.java.OverrideAnnotationSupport$Request]" daemon [_thread_blocked, id=3868]
    0x02e1d7d0 JavaThread "MDR event dispatcher" daemon [_thread_blocked, id=3996]
    0x00037b60 JavaThread "DestroyJavaVM" [_thread_blocked, id=900]
    =>0x030081e0 JavaThread "AWT-EventQueue-1" [_thread_in_Java, id=3872]
    0x031ebb28 JavaThread "TimerQueue" daemon [_thread_blocked, id=2448]
    0x031d2b80 JavaThread "Inactive RequestProcessor thread [Was:ListModelSupport loader/org.netbeans.modules.java.navigation.spi.ListModelSupport$Loader]" daemon [_thread_blocked, id=1836]
    0x031a6dd8 JavaThread "Inactive RequestProcessor thread [Was:Java Node State Updater/org.netbeans.modules.java.JavaNode$StateUpdater]" daemon [_thread_blocked, id=1788]
    0x0316cb90 JavaThread "Inactive RequestProcessor thread [Was:ToolTip-Evaluator/org.netbeans.modules.editor.NbToolTip$Request]" daemon [_thread_blocked, id=3228]
    0x02f3d390 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3456]
    0x00acf638 JavaThread "AWT-Windows" daemon [_thread_in_native, id=628]
    0x02ecd948 JavaThread "AWT-Shutdown" [_thread_blocked, id=2720]
    0x00acd950 JavaThread "Timer-0" daemon [_thread_blocked, id=1852]
    0x02cd8820 JavaThread "CLI Requests Server" daemon [_thread_in_native, id=1340]
    0x00ab7a70 JavaThread "Active Reference Queue Daemon" daemon [_thread_blocked, id=2492]
    0x00a70268 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3004]
    0x00a6eed8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3440]
    0x00a6e1c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3444]
    0x0003fa20 JavaThread "Finalizer" daemon [_thread_blocked, id=3492]
    0x00a48aa0 JavaThread "Reference Handler" daemon [_thread_blocked, id=2580]
    Other Threads:
    0x00a68428 VMThread [id=3628]
    0x00a714b8 WatcherThread [id=3752]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 2304K, used 914K [0x1ca70000, 0x1ccf0000, 0x1d440000)
    eden space 2048K, 44% used [0x1ca70000, 0x1cb54868, 0x1cc70000)
    from space 256K, 0% used [0x1cc70000, 0x1cc70000, 0x1ccb0000)
    to space 256K, 0% used [0x1ccb0000, 0x1ccb0000, 0x1ccf0000)
    tenured generation total 30272K, used 16957K [0x1d440000, 0x1f1d0000, 0x24a70000)
    the space 30272K, 56% used [0x1d440000, 0x1e4cf758, 0x1e4cf800, 0x1f1d0000)
    compacting perm gen total 32768K, used 21094K [0x24a70000, 0x26a70000, 0x2aa70000)
    the space 32768K, 64% used [0x24a70000, 0x25f098f0, 0x25f09a00, 0x26a70000)
    ro space 8192K, 66% used [0x2aa70000, 0x2afcbcc0, 0x2afcbe00, 0x2b270000)
    rw space 12288K, 46% used [0x2b270000, 0x2b812060, 0x2b812200, 0x2be70000)
    Dynamic libraries:
    0x00400000 - 0x0040c000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\java.exe
    0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
    0x6d6e0000 - 0x6d874000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\client\jvm.dll
    0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f56000 C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x6d2f0000 - 0x6d2f8000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
    0x6d6b0000 - 0x6d6bc000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\verify.dll
    0x6d370000 - 0x6d38d000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\java.dll
    0x6d6d0000 - 0x6d6df000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\zip.dll
    0x6d530000 - 0x6d543000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
    0x76d40000 - 0x76d58000 C:\WINDOWS\system32\MPRAPI.dll
    0x77cc0000 - 0x77cf2000 C:\WINDOWS\system32\ACTIVEDS.dll
    0x76e10000 - 0x76e35000 C:\WINDOWS\system32\adsldpc.dll
    0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
    0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
    0x76b20000 - 0x76b31000 C:\WINDOWS\system32\ATL.DLL
    0x774e0000 - 0x7761c000 C:\WINDOWS\system32\ole32.dll
    0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.dll
    0x76e80000 - 0x76e8e000 C:\WINDOWS\system32\rtutils.dll
    0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
    0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
    0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
    0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
    0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
    0x0ffd0000 - 0x0fff8000 C:\WINDOWS\system32\rsaenh.dll
    0x769c0000 - 0x76a73000 C:\WINDOWS\system32\USERENV.dll
    0x6d070000 - 0x6d1d7000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\awt.dll
    0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
    0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
    0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
    0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
    0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
    0x10000000 - 0x10005000 C:\WINDOWS\BricoPacks\Vista Inspirat\ObjectDock\DockShellHook.dll
    0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
    0x03510000 - 0x0351f000 C:\WINDOWS\BricoPacks\Vista Inspirat\YzToolbar\YzToolBar.dll
    0x5d090000 - 0x5d127000 C:\WINDOWS\system32\COMCTL32.dll
    0x7c9c0000 - 0x7e77e000 C:\WINDOWS\system32\shell32.dll
    0x77f60000 - 0x77ff7000 C:\WINDOWS\system32\SHLWAPI.dll
    0x773d0000 - 0x774d2000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x6d2b0000 - 0x6d2ed000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\fontmanager.dll
    0x6d550000 - 0x6d559000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\nio.dll
    0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll
    0x71b20000 - 0x71b32000 C:\WINDOWS\system32\MPR.dll
    0x75f60000 - 0x75f67000 C:\WINDOWS\System32\drprov.dll
    0x71c10000 - 0x71c1e000 C:\WINDOWS\System32\ntlanman.dll
    0x71cd0000 - 0x71ce7000 C:\WINDOWS\System32\NETUI0.dll
    0x71c90000 - 0x71cd0000 C:\WINDOWS\System32\NETUI1.dll
    0x71c80000 - 0x71c87000 C:\WINDOWS\System32\NETRAP.dll
    0x75f70000 - 0x75f79000 C:\WINDOWS\System32\davclnt.dll
    0x77b40000 - 0x77b62000 C:\WINDOWS\system32\appHelp.dll
    0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
    0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
    0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
    0x76980000 - 0x76988000 C:\WINDOWS\system32\LINKINFO.dll
    0x03bc0000 - 0x03c09000 C:\WINDOWS\system32\ntshrui.dll
    VM Arguments:
    jvm_args: -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -Xms32m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=96m -Xverify:none -Dapple.laf.useScreenMenuBar=true -Dnetbeans.osenv=C:\DOCUME~1\M996F~1.KHA\LOCALS~1\Temp\nbenv3 -Dnetbeans.osenv.nullsep=true -Djdk.home=C:\Program Files\Java\jdk1.5.0_06 -Dnetbeans.home=C:\Program Files\netbeans-5.0\platform6 -Dnetbeans.dirs=C:\Program Files\netbeans-5.0\nb5.0;C:\Program Files\netbeans-5.0\ide6;C:\Program Files\netbeans-5.0\enterprise2;C:\Program Files\netbeans-5.0\harness -Dnetbeans.user=C:\Documents and Settings\M.Khalid\.netbeans\5.0 -Dnetbeans.system_http_proxy=DIRECT -Dsun.awt.keepWorkingSetOnMinimize=true
    java_command: org/netbeans/Main --branding nb
    Launcher Type: SUN_STANDARD
    Environment Variables:
    CLASSPATH=.
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\ ; C:\Program Files\Java\jre1.5.0_06\bin
    USERNAME=M.Khalid
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 514544k(100160k free), swap 1258580k(883052k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0

    Did you try asking Netbeans support too?

  • Trying to understand PC mic in hardware

    Hi.   Here's a laundry list of questions basically centered around how my PC mic in works, and how to use things like iMic, headphone outputs, and external microphones with it. Feel free to answer it all, or chip away at it as you see fit.
    I have a HP Pavilion g7 (about 3 years old). The microphone input is 3.5 mm.
    (1) What is the input configuration of the 3.5 mm mic jack? (T/S or T/R/S). I have some notes that say the input is T/R/S, with the ring being for sending power to the microphone. Does that sound correct?
    (2) If I wanted to use an iMic on 3.5 mm input to PC, I’d set the iMic to "microphone" and then it should work. Correct?
    (3) There's no line-in voltage level input capacity on the G7, correct? What if I wanted to input to PC from the 1/4" mono headphone output of a vintage record player. Can I just step the jack down to 3.5 mono and use the mic input, or would the powered headphone speaker level output damage the PC sound card?
    (4) If #1 above is true, then it's a mono-only input. Since the ring segment is for powering a mic, correct? So what happens if a T/R/S input is used for stereo signal, is one channel ignored? The HP manual says that the G7 can accept stereo microphone input, but I don’t see how….
    (5) Given #4 above, isn’t a channel lost if I use the 3.5 input from the iMic (see #1 & #4 above)?
    (6) What is the "stereo mix" on control panel/sounds/recording? Says it is unavailable.
    (7) If I want to use an external mic (i.e. for skype) what configuration should it have: T/S or T/R/S?
    It seems that I know just short of enough to be dangerous.
    Thanks.

    @McMike54 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Confused about this error.

    I'm new to Java, and I'm trying to do some work with the Graphics2d library. But whenever I try to run any sample code (like below), I get this weird error:
    java.lang.NoClassDefFoundError: ShapeExample
    Exception in thread "main"
    What's up? It seems that the code below is fine. I'm using J2SE 1.4.1 with Eclipse.
    import javax.swing.*; // For JPanel, etc.
    import java.awt.*; // For Graphics, etc.
    import java.awt.geom.*; // For Ellipse2D, etc.
    /** An example of drawing/filling shapes with Java2D in Java 1.2.
    * From tutorial on learning Java2D at
    * http://www.apl.jhu.edu/~hall/java/Java2D-Tutorial.html
    * 1998 Marty Hall, http://www.apl.jhu.edu/~hall/java/
    public class ShapeExample extends JPanel {
    private Ellipse2D.Double circle =
    new Ellipse2D.Double(10, 10, 350, 350);
    private Rectangle2D.Double square =
    new Rectangle2D.Double(10, 10, 350, 350);
    public void paintComponent(Graphics g) {
    clear(g);
    Graphics2D g2d = (Graphics2D)g;
    g2d.fill(circle);
    g2d.draw(square);
    // super.paintComponent clears offscreen pixmap,
    // since we're using double buffering by default.
    protected void clear(Graphics g) {
    super.paintComponent(g);
    protected Ellipse2D.Double getCircle() {
    return(circle);
    public static void main(String[] args) {
    WindowUtilities.openInJFrame(new ShapeExample(), 380, 400);
    }

    I am running it now without an IDE, can you guys
    explain the problem a bit more explicitly? I mean, I
    thought the class that is giving the trouble is the
    ShapeExample class, which is in the file.
    Do you mean to say that I have to put that part of
    the file with this class in a seperate file (say
    shapeexample.class) and then use a .java file to call
    the class to run it?
    Sorry, I'm pretty new at this.You write code that humans can understand and put it into .java files.
    Then, you call javac, or click your IDE's "Compile" or "Build" button to compile the .java source files into .class files that the VM can understand.
    Then you call java -cp some;class;path MyClass, or click your IDE's Run button, to invoke the VM and tell it to run the main method in the MyClass.class file, and that it can find MyClass.class and all the other .class files that it needs in some or class or path (where "some" and "class" and "path" are just dummy placeholder example type thingies)
    You should go through a tutorial from the beginning. All these questions will be addressed.
    See Resources for beginners at http://www.thejword.com/3.html#beginner_resources

  • Precise positioning/move of gradient annotator?

    Hello, when one has selected an object and assigned a gradient fill, and after pressing G to select the gradient tool, the X and Y coordinates correspond the location of the shape, not the location of the gradient.  Meaning, even if I know the coordinates where I want to place the start point of the gradient annotator, I can't manually enter them.  The Info panel will show the location of the mouse pointer, but not while I hold down the mouse button while dragging the annotator, so that doesn't really help much.  It appears that you just can't select a gradient in the same way you can select an object.  If I could, I could simply use the align commands to take care of this for me, or move things relative to some point.
    Oh also it seems that snapping to points or grids does not work when moving the annotator.  Nudging also does not work.  Maybe I am going about this in the wrong way?  because surely people want to have high precision with positioning their annotators? 
    Something else that might be helpful is if I could move the annotator on-the-fly while also expanding it or rotating it -- with the spacebar similar to how it's done with segments and shapes.
    Thanks in advance for advice!

    Wow. I've been wanting to know this like forever too but three years and still no response.
    Anyone?

  • Custom mask in FCPX or perhaps Motion?

    Hi all, can anyone help please?
    I have a sequence where a bride and groom walk towards the camera. I have used the retime function to slow the clip down and eventually freeze it. I would now like to create a mask where the couple remain in colour and the rest of the guests etc fade to B+W. I have to admit I am stumped as to how to achieve this as I cant find a bezier tool in FCPX, and I dont know how to export the image into Motion to apply a mask and then back to FCPX. Gone round and round in circles trying to figure this out and have just opened a big bucket of fail! Im new to FCP and indeed Mac so I realise im very much a noob, but would really appreciate some pointers.
    Thanks in advance!
    Andy.

    It's that not difficult to do in FCPX.  That type of effect needs to be done in the Color Correction feature of the video and I'll do my best to explain.
    1.   Place your playhead over the section you wish to apply this effect.
    2.   Go to your Inspector window, and make sure you have Video selected in the above tabs.
    3.   Go to your Correction 1 tab and click on the Mask icon (it's the second image next to the eyedropper).
    4.  You will now see a circular mask with two rings on your video.  The inner ring defines the shape of the mask and the outer ring defines the feathering.
    5.  Create the mask you want with this tool.  (If you want a square mask, look for a "white" button near one of the green transforming buttons.  Using this white button will tweak the shape of the mask.)
    6.  Now go back to the Inspector window-->Correction 1 and click the Right Arrow.  This will take you to a Color Correction tools.
    7.  At the bottom of that window there are 2 buttons: Inside Mask and Outside Mask.  Click on the Outside Mask.
    8.  Click on the Saturation choice at the top and drag the large Saturation button down.  That will desaturate the image outside of the square.
    That's it!  If you want to fade-in this color change, you can keyframe the Saturation within the clip.
    Good luck!

  • SPA-8000 NEC-IP2AP-924M Analogue PBX connectivity issues

    Having issues with SPA-8000 connected to an old NEC-IP2AP-924M Analogue PBX.
    It is setup through the VOIP vendor (MyNetFone) interface to ring each station line for 10 seconds and move on to the next, and finally to VoiceMail.
    We know the VOIP vendor's setup works as we have the same arrangement working internally at our office; but using a much older Nortel/GSX (now LG) Analogue PBX.
    What happens at the client's installation is that each station lights and give one single solitary ring, and then stays silent for 10 seconds before moving to the next station line.
    This behavior is certainly not desired.
    Presumably there is an issue with the ring tone frequency, shape, duty-cycle, etc.
    I'm hoping that someone out there has hit this kind of problem with another (or same) Analogue PBX or phone and knows what SPA-8000 line parameters I should change
    Thanks in advance

  • Dual nic NAS and Jumbo Frame

    I am posting this on the server area because I doubt I am going to get an answer anywhere else.
    I have a linux based NAS running netatalk and avahi (afp server and bonjour) with two nics and I have a brand new Mac Pro with two NICS. What I want to do is run a crossover cable between the NAS and the Mac Pro in addition to both being plugged into the normal network. The normal network would have 1500 byte mtu so my internet performance and all of the various vintages of print servers work ok. The dedicated network would have jumbo frames. As we get more Mac Pros, we would add a switch and more machines to this secondary jumbo frame network.
    That in theory should work fine (I have done it with other operating systems). My quandary is how to get the Mac to always connect to the NAS via the Jumbo nic and not through the other nic? The Mac learns of the server via Bonjour, so how do I tell it to prefer the "appearance" of the server on the jumbo NIC vs the appearance on the normal network. I know with WINS or DNS I can override the name resolution with a LMHOSTS or hosts file entry, can I do the same with Bonjour?
    Thanks for any help or any pointers in the right direction!

    I think you are misguided in your assumption that I am not intimately familiar with TCP and don't know what I am talking about.
    TCP does not "negotiate" MSS, it advertises the MSS of each side to the remote in the 3 way handshake. It is perfectly acceptable to have asymetric MSS values. TCP does NOT NEGOTIATE a common MSS size. On a LAN, this will result in a functional communication. UDP however does not have such mechanisms and will fail.
    TCP will also not function properly in the scnario of my local workstaion with jumbos enabled communicating with a distant endpoint that also has jumbos enabled across a transit network that does not support the maximum MSS used by one of the end stations. For giggles let's say the far end is FDDI and has 4k frame size. Our transit does not support frame sizes larger than the "natural" frame size of 576 bytes. We will use a 4k frame size from me to the remote and a 9k from the remote to me. If the remote sends to me it can use the full 4k MSS of token ring because its less than my MSS. In the reverse my workstation would send 4k frames back to the token ring station. Successful communication would then depend on path MTU and intermediary routers to send ICMP type 3 code 4 messages to signal back to our end stations to reduce our MSS (assuming the DF bit is set on our traffic or the transit router is incapable of fragmentation).
    This is perhaps a bit of a flippant example in that nobody would be running FDDI or Token ring anymore, but random entities on the internet will run jumbo frame and perhaps some other l2 technology we aren't familiar with.
    Did you ever deal with someone on a token ring segment trying to hit 3Com's web site when it was fddi or token ring? I have on several occasions. I also see this with VPNs all the time. Cisco's genius recomendation is to reduce your MSS on your server as some of their products don't support PMTU. I have had a Cisco <-> Juniper VPN where transfers worked one way because the Juniper would silently strip the DF bit from the packet and fragment it and the Cisco router (38xx) wouldn't do the same in the reverse direction. I also went through **** with the Nortel Contivity VPN devices while they sorted out what to do with the whole MTU negotiation issue.
    I have spent many hours of my life pouring through sniffer captures because of mismatched MTUs. Let's not forget the old days of FDDI backbones with ethernet segments bridged across them and FDDI attached servers... mismatched buffers... no thanks.
    I therefore don't want to waste my time troubleshooting some bizzare networking issue when there is a perfectly valid way of solving the issue for absolutely minimal expense. I am moving large files here (certainly large enough to get well out of TCP slow start), we easily saturate the full gig link minutes at a time and a saturated gigabit link at standard frame size is inefficient due to the interpacket gap which is locked at 96 bit times for ethernet and the 40 bytes of TCP/IP header plus whatever application payload is prepended per packet on each link. Cutting the number of TCP/IP headers and (probably more importantly since most decent nics do checksum offload these days) application layer headers also reduces load on both client and server.
    On large sequential bulk data transfers jumbo frame effectively increases performance and reduces overhead. Period. I have implemented it from the early days of Alteon hardware in Sun servers through Juniper EX products last week. Every iSCSI implementation I run into is jumbo frame based for those exact reasons.
    That being said, I don't need to restrict anything. All I want to do is to override bonjour/mDNS for this particular host such that the Pro always communicates over the jumbo segment. This is easily accomplished in windows with an LMHOST entry or in a unix environment with a HOSTS file entry. Is there some way to override bonjour from the client side? I'm ok even statically defining the services presented by bonjour on this host.
    I am also willing to force all bonjour requests through a DNS server, however Apple doesn't have any decent documentation on how this is accomplished in an enterprise environment.

  • Eth. T/R DLSw w/ Redundancy

    I have an ethernet segment and a Token Ring segment.
    I have 2 routers connecting to both the Ethernet and the Token Ring. Both routers have a serial interface. I'm attempting to have dlsw redundancy for both Ethernet and Token Ring.
    I noticed that when I 'Ping' from Ethernet to T/R, I get duplicate responses. I've been forced to disable redundancy for DLSw on the Token Ring. Is there any reason this might happen?
    Any help will be greatly appreciated.

    You may have a routing or bridging loop. It's difficult to troubleshoot on this type of message board. I'd suggest you open a case with the TAC and request some design help and configuration review. That way you can describe your specific situation and include diagrams of your network.

  • Combining Line Segments into a single shape

    I drew one half of a shape by drawing multiple line segments using the arc tool. Think of the shape as sort of a C. Once I had the shape the way I wanted it, I copied and reflected it to give me the other half, so now it looks sort of like an O. However, when I go to fill the shape, I get all sort of weird fills, like it is trying to close each of the individual arcs that I drew.
    I have spent over an hour going through Illustrators help and searching the internet, but I can't figure out how to join all these line segments into a single shape that I can then apply a fill to. I'm sure this is easy, but I'm frustrated.
    Thanks,
    Ken

    Thanks Kurt. That did it. My gosh, I would never have thought of looking for something like that. I upgrade to CS3 sometime ago, but hadn't used illustrator much since I upgraded.
    Thanks for the help.
    Ken

  • SEGMENT Shape

    Why is there no SEGMENT shape in Pages. (1/4 circle) This is a shape that is used all the time in drawing. e.g open doors on a floor plan. I cant find any way to create one either.

    *4 ways you can do this.*
    1. Create a quarter segment in a 3rd party vector drawing program such as LineForm , ZeusDraw or Illustrator (there are plenty more), save and import as a pdf
    2. Do the above, save as .svg file and import into Keynote , copy from Keynote into Pages (yeah, I know!)
    3. Click on the *Objects menu* in the workbar, down the bottom of Shapes is a freeform drawing tool. Try it but it is extremely clumsy. Best to work large and reduce in size.
    4. Click on the *Objects menu* in the workbar, select the circle from Shapes. Select the resulting circle shape and go +Menu > Format > Shape > Make editable+ You can click on points of the circle and delete them or retract their handles to make them corners. Again extremely clumsy. It helps to first rotate the circle 45° as the control points are at 45° to the page.
    Using the last 2, eventually lead to Pages crashing on my machine.
    *Bonus method:* Create a pie graph divided into 4 equal sections. Pull out one of the quarters.

  • Shape is auto segmented after saving

    This screen shot shows part of a shape, this shape was solid with a gradient accros it and now for some reason its got all these rectangles split into it. ( screen shot shows mouse hoovering over one of these rectangles ).
    When you save the document as a PDF you can see all the lines which the shape has split into.
    Im guessing it has something to do with the gradient? I need to revert it because the shape was quite complicated to draw and i'd rather not have to redo it.

    rebeccatelrock wrote:
    just saved it as a PDF, I never actually closed the file, just saved it as a PDF and then it went like that.
    That shouldn't happen. Just saving a PDF shouldn't explode your paths.
    On top of that you saved a PDF with Illustrator Editing Capabilities, so the original objects actually should be there.
    What exactly did you do to that object inside Illustrator? This particular result should only happen when applying Object > Expand.
    Did you already close the file at some step or can you still revert?

Maybe you are looking for

  • Mail and lost passwords

    Forgive me for starting a new topic but the long-running saga of missing passwords has been closed. Fed up withconsistently having to replace password or correct Advanced preferences i decided to remove all trace of my faulty accounts and reinstall t

  • How to delete a perticular node from xml file using java code

    Hii All, Now i am trying to delete a perticular node from xml file.Like... XML file: <Licence> <SERVER> <was id="1">1</was> <was id="2">2</was> </SERVER> </LICENCE> I am working in messaging service using JABBER framework with whiteboard facility. He

  • Which imacs and apple displays connect to late 2008 aluminum macbook 13 inch for use as external display?

    I have a late 2008 13 inch aluminum macbook and want to purchase an iMac computer or apple display to use as an external display for it while I'm at my desk. I can afford up to $700 for sure, maybe up to $1000 and would like one that has built in cam

  • About trim function capabulity

    Hi Experts, I have a some doubts regarding trim function. 1)trim function any limitations like it will trim for this munch length string(consider adding space also)? please consider in case of trimming spaces Regards, Surya

  • Workflow between FCP and Color

    I have been working on a 720P DVCPRO project. I am not sure what the work flow should be for adding in your color correcting stage. I have edited my project with speed ramps and different effects within Final Cut 6.02. When I rendered my files from C