Basic Colors in Java

Hi.
Hi. I have a method that generates random colors but now I need this method to generate basic colors, because with random colors again brings back too many colors. This is my method for random colors:
Random randCol = new Random();
                      String cores = null;
                      for(int i = 0 ; i < faixas.split(",").length ; i++ ){
                          String html = String.format("#%06X", randCol.nextInt(0xFFFFFF+1));
                          if(cores == null)
                              cores = html.replaceAll("#","") + ",";
                          else
                              cores += html.replaceAll("#","") + ",";
                      } Is there any way to change this method so that it generates only basic colors?
Thanks
Marcos Santiago

How about putting all 'basic' colors in an array. Then you generate a random number in the range of the array size and return the color stored in the array at the calculated index.
Something like
    public Color randomColor()
        ArrayList<Color> colors = new ArrayList<Color>();
        colors.add(Color.yellow);
        colors.add(Color.white);
        colors.add(Color.red);
        colors.add(Color.pink);
        colors.add(Color.orange);
        colors.add(Color.magenta);
        // more to add...
        Date d = new Date();
        java.util.Random rnd = new java.util.Random(d.getTime());
        int lInt = rnd.nextInt(colors.size());
        return colors.get(lInt);
    }Timo

Similar Messages

  • ITunes puts my computer in windows 7 basic color mode. It also does not recognize my iPad as viable video source

    When I start iTunes on my desktop computer, instantly it switches to Windows 7 Basic Color mode:
    "The color scheme has been changed
    The following program has performed an action that requires Windows to temporarily change the color scheme to Windows 7 Basic.
    Program: iTunes
    Publisher: Apple Inc.
    Process indentifier (PID): 3296
    Windows will automatically change the color scheme back to Windows Aero when this program or other programs performing similar actions are no longer running."
    When I close iTunes, it immediately switches back.
    THEN, when I try and move a movie I have recently downloaded ("Tangled (2010)" or "Tron: Legacy") to my iPad (1st edition) or iPod Touch, iTunes tells me these devices are not supported:
    "Tangled (2010) was not copied to the iPad "My iPad" because it cannot be played on this iPad."
    I get the same message with "Tron". This is only happening with the movies I have downloaded after February. All previously downloaded movies work just fine. I have found when I transfer the new files to my laptop and use iTunes on there, everything works normally. 
    New for today...
    When I plug the iPod Touch into the the desktop computer, iTunes locks up completely. I only get it back when I unplug the iPod.
    Solutions...
    I have done minimal talking via email with iTunes support. They told me to make sure I had the updated version of everything. I had explained in my original inquiry I had done that already. When I replied as such, I did not get a reply. I sent several messages explaining that I have deleted itunes all together from my computer and reinstalled the program from scratch. Finally, I received a second reply to reinstall iTunes.
    Also, I have tried several ways of moving the movies over to the iPad and iPod: dragging/dropping, sync, auto sync. I get the same error message every time.
    I am more than a little frustrated with Apple's lack of support and hope someone out there knows something that can be done. PLEASE HELP!
    My desktop computer:
    Homebuilt with EVGA 58x motherboard
    Processor: Intel i7 920 @ 2.67GHZ
    RAM: 12 GB
    System Type: 64-bit Operating System
    OS: Windows 7 Ultimate w/Service Pack 1
    nVidia GeForce GTX 275 1GB GDDR3
    DirectX 11.0
    My laptop:
    HP Pavilion dv6700
    Processor: Intel Core Duo T8100 @ 2.10GHZ
    RAM: 3 GB
    System Type: 32-bit Operating System
    OS: Windows 7 Ultimate
    nVidia GeForce 8400M GS
    Thanks in advance,
    Scott

    Just curious, have you resolved your issue yet?
    I am working on a friend's computer that had the same issue and it turned out that her iTunes was set by some crappy program called TuneUp Companion to use Windos XP compatibility.
    If you have TuneUp Companion, uninstall it.
    Then check to see if iTunes is trying to run in some prior windows version compatibility and turn it off
    http://support.apple.com/kb/TS1489

  • Since the 12/9/14 update of Adobe Acrobat XI Standard to 11.0.10 I have lost the basic colors of the highlighting tool. How do I fix this?

    Adobe Acrobat XI Standard to 11.0.10 I have lost the basic colors of the highlighting tool. How do I fix this?

    Hi,
    It appears that this was a bug that was introduced in the latest update. Others have been able to resolve this issue by using the Acrobat Cleaner tool to uninstall and then reinstall Acrobat. You might try this if you have a few spare moments.
    And can you please share the problem PDF  which was working correctly in the earlier version.
    Thank you

  • How to get the silverish white color in Java

    Hi
    I want to know how to get the silver color in Java
    I am currently using
    R , G , B
    setBackground(new color(255,255,255));
    I am getting bright white color.
    How do I get the polished white(silverish white color) color.
    Thank You

    RGB Color Chart...
    http://www.htmlcenter.com/tutorials/tutorials.cfm/89/General/
    perhaps new Color(223,223,255) ???

  • Translating Visual Basic Events into Java Events

    I'm in the process of porting a Visual Basic application to Java. Now, most of it is pretty straight forward, since good OO practice is evident in the original VB source. With a good dose of refactoring along the way the Java version is looking pretty good too.
    However, I'm having a problem with events. Here's a snuppet of one of a VB class that generates events and one that uses it:
    (Invoices.cls)
    -=-=-=-=-=-=-=-=-
    Event AddItem(ItemID as String)
    Event RemoveItem(ItemID as String)
    Private m_Items as Collection
    Public Sub Add(ItemID as String)
       m_Items.Add ItemID
       RaiseEvent AddItem(ItemID)
    End Sub
    Public Sub Remove(ItemID as String)
       m_Items.Remove ItemID
       RaiseEvent RemoveItem(ItemID)
    End Sub
    -=-=-=-=-=-=-=-=-and
    (OrderBook.cls)
    -=-=-=-=-=-=-=-=-
    Private WithEvents m_Invoices as Invoices
    Private Sub m_Invoices_AddItem(ItemID as String)
       CalculateTotals
    End Sub
    Private Sub m_Invoices_RemoveItem(ItemID as String)
       CalculateTotals
    End Sub
    -=-=-=-=-=-=-=-=-Can anyone give me a few pointers on what the Java equivalent to this VB code is?
    Thanks,
    Vince.

    Hi,
    There are few main things involved in a Java event delivery
    1. The event source
    2. The event listener
    3. The even data
    4. Registration
    5. The event delivery process
    I don't know the VB syntax, but any way it gives a good idea of what you wish to achieve.
    Here the Invoice class is basically the event source. And the OrderBook class is the event listener. To proceed further you will have to specify (define) the event listener first. Secondly you will have to create an event object which contains the data to be delvered via the event.
    1. Specifying the event listener interface
    public Interface ItemOperationListener
    public void itemAdded (ItemOperationEvent ioe);
    public void itemRemoved (ItemOperationEvent ioe);
    2. The event class
    public class ItemOperationEvent extends java.util.EventObject
    String item = null;
    public ItemOperationevent(Object source, String Item)
    super(source);
    this.item = item;
    public String getItem()
    return item;
    3. Creating and firing the event from the event source.
    public class Invoice
    private collection items; // any collection
    // to hold all the event listeners , this way u can define > 1
    // listeners
    javax.swing.event.EventListenerList listenerList = new javax.swing.event.EventListenerList();
    public void addItem(String item)
    items.add(item);
    // update the listeners
    fireItemAdded(item);
    public void removeItem(String item)
    items.add(item);
    // update the listeners
    fireItemRemoved(item);
    public void addItemOperationListener(itemOperationListener ioe)
    listenerList.add(ioe);
    public void removeItemOperationListener(itemOperationListener ioe)
    listenerList.remove(ioe);
    public void fireItemAdded(String item)
    ItemOperationEvent e = null;
    Object[] listeners = listenerList.getListenerList();
    // Process the listeners last to first, notifying
    // those that are interested in this event
    for (int i = listeners.length-2; i>=0; i-=2) {
    if (listeners== ItemOperationListener.class) {
    if (e == null)
    e = new ItemOperationEvent(this,item);
    ((ItemOperationlistener)listeners[i+1]).itemAdded(e);
    public void fireItemRemoved(String item)
    ItemOperationEvent e = null;
    Object[] listeners = listenerList.getListenerList();
    // Process the listeners last to first, notifying
    // those that are interested in this event
    for (int i = listeners.length-2; i>=0; i-=2) {
    if (listeners[i] == ItemOperationListener.class) {
    if (e == null)
    e = new ItemOperationEvent(this,item);
    ((ItemOperationlistener)listeners[i+1]).itemRemoved(e);
    4. The listener and the registration .
    public class OrderBook implements ItemOperationListener
    private Invoice invoice; // invoice instance.
    public OrderBook()
    // register for event updates .
    invoice.additemOperationListener(this);
    public void itemAdded(ItemOperationEvent ioe)
    String tobeAdded = ioe.getItem();
    calculate();
    public void itemRemoved(ItemOperationEvent ioe)
    String tobeRemoved = ioe.getItem();
    calculate();
    public void calculate()
    I hope this gives a picture of the standard method of event delivery in java . However you can even follow the Observer, Observable pattern (see the documentation for java.util.Observer, Observable).
    Hope this helps,
    Manish.

  • Is there a way to import a CDL / EDL generated from DaVinci Resolve into Premiere/Speedgade to have it show the basic color from Resolve?

    Trying to take a basic color pass from Resolve for a client in Resolve and send a CDL / EDL to them with the media. They will load media, open EDL and have the timeline populate showing the basic color applied using either Premiere or Speedgrade. Tried Adobe support (worthless)!  Any help would be great.
    Thank you

    Hello Neil,
    Thanks for the response. I understand about the Speedgrade / Premiere thing. What we are trying to do is essentially the reverse. I use DaVinci Resolve, my client is using Premiere to edit. They want me to do essentially a best light pass on the footage without rendering it out. I then would export a CDL / EDL from Resolve and they would load that into Premiere or Speedgrade whichever would then display the simple color grade using the Adobe color tools. The CDL generated from Resolve is a cross platform basic color information inside an EDL. Anyway I can't find a way for Premiere / Speedgrade to read this info yet. Supposedly It will in Final Cut X, although I haven't tried it since I don't have Final Cut X on my computer.
    John

  • How to remove and change the color of Java cup and border

    Hi to all,
    How to remove and change the color of Java cup and border.
    Thanks in advance
    khiz_eng

    This is just an Image. You would need to create your own image and call setIconImage(Image) on your JFrame.

  • My ipad 2 screen only shows basic colors

    My ipad 2 was dropped and now when turned on, it only shows basic colors, mainly greens and blue tones. 

    Hello bud4canada,
    It sounds like you are unable see your lock screen to unlock your iPad and get you to your home screen. I dont know if this is the reset you have done, but its the first thing I would do:
    To reset, press and hold both the Sleep/Wake and Home buttons for at least 10 seconds, until you see the Apple logo.
    From: Turn your iOS device off and on (restart) and reset
              http://support.apple.com/kb/ht1430
    If this does not resolve the issue, I would next attempt backing up your device to iTunes:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Then put it into recovery mode, and restoret he iPad:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

  • Printouts too dark on Laserjet CP2025, HP Basic Color Match tool crashes.

    I recently purchased an HP Color LaserJet CP2025, but my prints are coming out extremely dark causing me to have to use extreme brightness/contrast increases when printing pictures.
    I tried using the HP Basic Color Match tool hoping it would address the issue, but ever time I get to the color match choice option the program crashes.
    I'm using 32-bit WinXP Pro.

    Here is a link  to a document that addresses print quality issues for your model or printer. It will give you troubleshooting steps to try in an attempt to correct the quality output issue that you are having with the printer. One of the topics covered in the article is how to adjust print density settings if the pages are printing too dark. It also covers how to change other print settings based on the quality of your output. I hope that this helps.
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Need example in basic level of java..

    can anyone give me an example of how to count the frequency of numbers occur and how to sort the numbers in ascending order?
    output:
    Numbers before sort: 1,3,2,1,1,1,3,4
    Numbers after sort: 1,2,3,4
    Frequency: 4,1,2
    p/s: i'm a beginner to java programming.. all i want is a very simple example to guide me.. the example must be in basic level of java that a beginner can understand..
    anyway.. thanks a lots..

    public static void main(String[] args)
    int[] ints =
    { 1, 3, 2, 1, 1, 1, 3, 4 };
    Arrays.sort( ints );
    TreeMap tm = new TreeMap();
    for ( int i = 0; i < ints.length; i++ )
    if ( !tm.containsKey( ints[i] ) )
    tm.put( ints, 1 );
    else
    tm.put( ints[i], ((Integer) tm.get(
    ints[i] )) + 1 );
    Collection c = tm.keySet();
    Iterator i = c.iterator();
    while ( i.hasNext() )
    int num = (Integer) i.next();
    System.out.println( num + " - " + tm.get( num ) );
    Would be even easier (and prettier) with generics...
    Message was edited by:
            Martin@Stricent                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to change InputField background color using Java Code

    Hi,
    In my application use will enter some set of Cost Centers in a table and submits request.
    In return i will get a list of invalid cost centers which i need to display in a table with input field
    In that table all cost centers will displayed, but invalid cost centers should be highlighted or background color should some other color. like red or yellow.
    Is it possible using java code to change a input field color.
    Please help me.
    Thanks

    Hi,
        declare a error message in message pool and declare a method say "checkCostCenters " and in this method, u can check whether it is a valid cost center .. if it is invalid cost center , then throw the erro message using the below code :
    wdComponentAPI.getMessageManager().reportContextAttributeMessage(
                        inputfieldattibutePointer, IMessageProgramPlanComp.ur error message,
                        new Object[] );
    for getting pointer and label use the below code:
    IWDAttributePointer inputfieldPointer = URNODEELEMENTElement
                        .getAttributePointer(URNODEELEMENT.ATTRIBUTENAME);
              String inputfieldLabel = wdContext.nodeURVALUENODE.getNodeInfo()
                        .getAttribute(URNODELEMENT.ATTRIBUTE).getSimpleType()
                        .getFieldLabel();
    hope it helps..
    Thanks and Regards

  • How to change object background color on  java run time

    Hi,
    I create object loading program. my problem is run time i change object background color using color picker. i select any one color of color picker than submit. The selecting color not assign object background.
    pls help me? How to run time change object background color?
    here follwing code
    import com.sun.j3d.loaders.objectfile.ObjectFile;
    import com.sun.j3d.loaders.ParsingErrorException;
    import com.sun.j3d.loaders.IncorrectFormatException;
    import com.sun.j3d.loaders.Scene;
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.io.*;
    import com.sun.j3d.utils.behaviors.vp.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.awt.Graphics ;
    import javax.swing.*;
    public class ObjLoad1 extends Applet implements ActionListener
    private boolean spin = false;
    private boolean noTriangulate = false;
    private boolean noStripify = false;
    private double creaseAngle = 60.0;
    private URL filename = null;
    private SimpleUniverse u;
    private BoundingSphere bounds;
    private Panel cardPanel;
    private Button Tit,sub;
    private CardLayout ourLayout;
    private BorderLayout bl;
    Background bgNode;
    BranchGroup objRoot;
    List thelist;
    Label l1;
    public BranchGroup createSceneGraph()
    BranchGroup objRoot = new BranchGroup();
    TransformGroup objScale = new TransformGroup();
    Transform3D t3d = new Transform3D();
    t3d.setScale(0.7);
    objScale.setTransform(t3d);
    objRoot.addChild(objScale);
    TransformGroup objTrans = new TransformGroup();
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    objScale.addChild(objTrans);
    int flags = ObjectFile.RESIZE;
    if (!noTriangulate) flags |= ObjectFile.TRIANGULATE;
    if (!noStripify) flags |= ObjectFile.STRIPIFY;
    ObjectFile f = new ObjectFile(flags,(float)(creaseAngle * Math.PI / 180.0));
    Scene s = null;
         try {
              s = f.load(filename);
         catch (FileNotFoundException e) {
         System.err.println(e);
         System.exit(1);
         catch (ParsingErrorException e) {
         System.err.println(e);
         System.exit(1);
         catch (IncorrectFormatException e) {
         System.err.println(e);
         System.exit(1);
         objTrans.addChild(s.getSceneGroup());
         bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
    if (spin) {
         Transform3D yAxis = new Transform3D();
         Alpha rotationAlpha = new Alpha(-1, Alpha.INCREASING_ENABLE,0,0,4000,0,0,0,0,0);
         RotationInterpolator rotator = new RotationInterpolator(rotationAlpha,objTrans,yAxis,0.0f,(float) Math.PI*2.0f);
         rotator.setSchedulingBounds(bounds);
         objTrans.addChild(rotator);
    //Background color setting
    Color3f bgColor = new Color3f(100,200,230);
    bgNode = new Background(bgColor);
    bgNode.setApplicationBounds(bounds);
    objRoot.addChild(bgNode);
    return objRoot;
    private void usage()
    System.out.println("Usage: java ObjLoad1 [-s] [-n] [-t] [-c degrees] <.obj file>");
    System.out.println("-s Spin (no user interaction)");
    System.out.println("-n No triangulation");
    System.out.println("-t No stripification");
    System.out.println("-c Set crease angle for normal generation (default is 60 without");
    System.out.println("smoothing group info, otherwise 180 within smoothing groups)");
    System.exit(0);
    } // End of usage
    public void init() {
    if (filename == null) {
    try {
    URL path = getCodeBase();
    filename = new URL(path.toString() + "./galleon.obj");
    catch (MalformedURLException e) {
         System.err.println(e);
         System.exit(1);
         //setLayout(new BorderLayout());
         //setLayout(new GridLayout(5,0));
         //setLayout(new CardLayout());
         //setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    Canvas3D c = new Canvas3D(config);
    add(c);
    BranchGroup scene = createSceneGraph();
    u = new SimpleUniverse(c);
    ViewingPlatform viewingPlatform = u.getViewingPlatform();
    PlatformGeometry pg = new PlatformGeometry();
    Color3f ambientColor = new Color3f(45,27,15);
    AmbientLight ambientLightNode = new AmbientLight(ambientColor);
    ambientLightNode.setInfluencingBounds(bounds);
    pg.addChild(ambientLightNode);
    Color3f light1Color = new Color3f(111,222,222);
    Vector3f light1Direction = new Vector3f(1.0f, 1.0f, 1.0f);
    Color3f light2Color = new Color3f(1.0f, 1.0f, 1.0f);
    Vector3f light2Direction = new Vector3f(-1.0f, -1.0f, -1.0f);
    DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);
    light1.setInfluencingBounds(bounds);
    pg.addChild(light1);
    DirectionalLight light2 = new DirectionalLight(light2Color, light2Direction);
    light2.setInfluencingBounds(bounds);
    pg.addChild(light2);
    viewingPlatform.setPlatformGeometry(pg);
    viewingPlatform.setNominalViewingTransform();
    if (!spin) {
    OrbitBehavior orbit = new OrbitBehavior(c,OrbitBehavior.REVERSE_ALL);
    BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
    orbit.setSchedulingBounds(bounds);
    viewingPlatform.setViewPlatformBehavior(orbit);     
    u.addBranchGraph(scene);
         public ObjLoad1(String[] args) {
              if (args.length != 0) {
                   for (int i = 0 ; i < args.length ; i++) {
                        if (args.startsWith("-")) {
                             if (args[i].equals("-s")) {
                                  spin = true;
                             } else if (args[i].equals("-n")) {
                                  noTriangulate = true;
                             } else if (args[i].equals("-t")) {
                                  noStripify = true;
                             } else if (args[i].equals("-c")) {
                                  if (i < args.length - 1) {
                                       creaseAngle = (new Double(args[++i])).doubleValue();
                                  } else usage();
                             } else {
                                  usage();
                        } else {
                             try {
                                  if ((args[i].indexOf("file:") == 0) ||
                                            (args[i].indexOf("http") == 0)) {
                                       filename = new URL(args[i]);
                                  else if (args[i].charAt(0) != '/') {
                                       filename = new URL("file:./" + args[i]);
                                  else {
                                       filename = new URL("file:" + args[i]);
                             catch (MalformedURLException e) {
                                  System.err.println(e);
                                  System.exit(1);
    public void actionPerformed(ActionEvent e)
         if (e.getSource() == Tit)
    //Color Picker tool
              Color c1 = JColorChooser.showDialog(((Component)e.getSource()).getParent(),"Zaxis Color Picker", Color.blue);
              cardPanel.setBackground(c1);
              objRoot.removeChild(bgNode);
              int a = c1.getRed();
              int b = c1.getBlue();
              int c = c1.getBlue();
              System.out.println(a);
              System.out.println(b);
              System.out.println(c);
              Color3f ccc = new Color3f(a,b,c);
              bgNode.setApplicationBounds(bounds);
         objRoot.addChild(bgNode);
         else
              System.out.println("mathi");
    public ObjLoad1()
    Tit = new Button("BG Color");
    sub = new Button("Object Color");
    cardPanel = new Panel();
    cardPanel.add(Tit);
    cardPanel.add(sub);
    //cardPanel.add(l1);
    //cardPanel.add(thelist);
    sub.addActionListener(this);
    Tit.addActionListener(this);
    // thelist.addActionListener(this);
    //setLayout for applet to be BorderLayout
    this.setLayout(new BorderLayout());
    //button Panel goes South, card panels go Center
    this.add(cardPanel, BorderLayout.SOUTH);
    //this.add(cardPanel, BorderLayout.CENTER);     
    this.setVisible(true);
    public void destroy() {
    public static void main(String[] args) {
         new MainFrame(new ObjLoad1(args),400, 400);

    hi,
    i am using setColor(Color3f color) method
    like
    if (e.getSource() == Tit)
              Color c1 = JColorChooser.showDialog(((Component)e.getSource()).getParent(),"Zaxis Color Picker", Color.blue);
              bgColor = new Color3f(c1);
              System.out.println(bgColor.get());
         bgNode.setColor(bgColor);
         bgNode.setApplicationBounds(bounds);
         objRoot.addChild(bgNode);
    but error will be displayed
    like
    javax.media.j3d.CapabilityNotSetException: Background: no capability to set color
         at javax.media.j3d.Background.setColor(Background.java:307)
         at ObjLoad1.actionPerformed(ObjLoad1.java:230)
         at java.awt.Button.processActionEvent(Unknown Source)
         at java.awt.Button.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    pls help me

  • Same basic color shortcuts as inDesign/illustrator/Photoshop

    Long standing miss from me, really useful when switching from an app to the other (Ps/Ai/inD)
    Shortcuts for
    D : Default color (black/White),
    Shift-X : switch the colors
    And may be 2 of the 3 most basic ones :
    , ; : (on the bottom right of a french keyboard) which set :
    , (comma) : picks the fill color (flat)
    : (colon) : picks the transparent color
    ; (semicolon) : picks a gradient (in Muse, may be switches from flat to gradient’s last settings ?)
    the ability to pick a color would require another default :
    X : switches the focus to fill/stroke color so we can remove (transparent) a stroke color, turn it into a flat fill, etc.

    You need to ask in those forums
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How can i change backgroud color in Java ME Platform SDK 3?

    Hello.
    Yesterday i had donwloaded Java ME Platform SDK 3.0. It is IDE based on NetBeans core, but i didn't find any facility to change default colors. (NetBeans have option to change color theme). I am don't like working when background color is white, i prefer black. So, how change a background color? Can anybody help me to figure this problem out?
    p.s. sorry for my bad english (

    Hello,
    Unfortunately it is not possible. We will think about it for next release. Java ME SDK is not supposed to offer full IDE functionality (e.g. changing editor colors), that's why some features are missing. For full IDE support use NetBeans IDE with Mobility support.

Maybe you are looking for

  • OB52 or S_ALR_87003642

    Dear Friends, We wanted to schedule job for open and close FI period. I did it many times manually through OB52 or S_ALR_87003642. I also did it with ABAP program as backgroudn job. Can we schedule job with OB52 or S_ALR_87003642 as SAP standard tras

  • View pdf files in safari

    When I click a link in Safari that goes to a PDF document All I get is a blank webpage. Why won't Safari display a PDF?

  • Final Cut Pro 7.0.3 XDCAM Issues

    Having problems with Final Cut Pro 7.0.3 on a feature with XDCAM EX 1080p 24p Using Sony cinemon plug-in to work natively with .mp4 files and Matrox mini MX02 on 2.2ghz quad i7 17inch macbook pro with 8gb ram and 2nd external monitor via mini-display

  • MS SQL -- Setting isolation level

    This is driving me nuts.... we're converting from Informix to MS SQL 2005 ; on our Informix JDBC connections we set the isolation level using IFX_ISOLATION_LEVEL=x but how do we do this on connectors to MSSQL 2005 ? Our servers are Linux based, pure

  • New ICloud Mail Box hard to read on Mac

    I find that the new ICloud Mail Box is very hard for me to read, It's way to light... Is there anyway to change the background or fonts?