Changing ruler guide color not working

Having an issue when I go to Layout > Ruler guides and change the ruler guide color, it doesn't update on the canvas and the color is still this mint green which is hard to see against a white background. Any idea on how to fix this?

yeah i went into preferences and changed all the colors in there too, but the one for ruler guides isn't in preferences its under layout > ruler guides. not sure why its not updating

Similar Messages

  • Code to change JTable cell color not working

    My code below is supposed to change the color
    of a single JTable cell however its not working.
    Could anyone please tell me why?
    Here's the code:
    import java.awt.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ColorTable extends JTable {
    public ColorTable() {
    AbstractTableModel tableModel = new AbstractTableModel() {
    public Class getColumnClass(int column) { return Integer.class; }
    public int getColumnCount() { return 6; }
    public int getRowCount() { return 10;}
    public Object getValueAt(int row,int col) { return new Integer(row * col); }
    setModel(tableModel);
    setDefaultRenderer(Integer.class,new ColorRenderer(Color.cyan));
    this.setRowSelectionAllowed(false);
    this.setCellSelectionEnabled(true);
    addMouseListener(new MouseAdapter() {
    private ColorRenderer renderer;
    private JColorChooser chooser = new JColorChooser();
    public void mousePressed(MouseEvent e) {
    if(e.getModifiers() == MouseEvent.BUTTON3_MASK) {
    System.out.print("rowAtPoint(e.getPoint())=" +rowAtPoint(e.getPoint()));
    System.out.print( "columnAtPoint(e.getPoint()))=" + columnAtPoint(e.getPoint()));
    renderer = (ColorRenderer)getCellRenderer(rowAtPoint(e.getPoint()), columnAtPoint(e.getPoint()));
    // chooser.setColor(renderer.getColor());
    renderer.setColor(chooser.showDialog((Component)e.getSource(),"Choose Cell Color",chooser.getColor()));
    class ColorRenderer extends DefaultTableCellRenderer {
    private Color cellColor;
    public ColorRenderer(Color color) { cellColor = color; }
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    System.out.print("row= " + row + "\n");
    System.out.print("column= " + column + "\n");
    System.out.print("OBJECT VALUE=" + value.toString());
    //Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (isSelected) {
    setOpaque(true);
    setBackground(cellColor);
    else {
    setBackground(Color.white);
    setForeground(Color.black);
    return this;
    public void setColor(Color color)
    cellColor = color;
    ColorTable.this.repaint();
    public Color getColor() { return cellColor; }
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel();
    ColorTable table = new ColorTable();
    panel.add(table);
    frame.getContentPane().add(panel);
    frame.setSize(500,250);
    frame.setVisible(true);

    My code below is supposed to change the color
    of a single JTable cell however its not working.
    Could anyone please tell me why?
    Here's the code:
    import java.awt.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ColorTable extends JTable {
    public ColorTable() {
    AbstractTableModel tableModel = new AbstractTableModel() {
    public Class getColumnClass(int column) { return Integer.class; }
    public int getColumnCount() { return 6; }
    public int getRowCount() { return 10;}
    public Object getValueAt(int row,int col) { return new Integer(row * col); }
    setModel(tableModel);
    setDefaultRenderer(Integer.class,new ColorRenderer(Color.cyan));
    this.setRowSelectionAllowed(false);
    this.setCellSelectionEnabled(true);
    addMouseListener(new MouseAdapter() {
    private ColorRenderer renderer;
    private JColorChooser chooser = new JColorChooser();
    public void mousePressed(MouseEvent e) {
    if(e.getModifiers() == MouseEvent.BUTTON3_MASK) {
    System.out.print("rowAtPoint(e.getPoint())=" +rowAtPoint(e.getPoint()));
    System.out.print( "columnAtPoint(e.getPoint()))=" + columnAtPoint(e.getPoint()));
    renderer = (ColorRenderer)getCellRenderer(rowAtPoint(e.getPoint()), columnAtPoint(e.getPoint()));
    // chooser.setColor(renderer.getColor());
    renderer.setColor(chooser.showDialog((Component)e.getSource(),"Choose Cell Color",chooser.getColor()));
    class ColorRenderer extends DefaultTableCellRenderer {
    private Color cellColor;
    public ColorRenderer(Color color) { cellColor = color; }
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    System.out.print("row= " + row + "\n");
    System.out.print("column= " + column + "\n");
    System.out.print("OBJECT VALUE=" + value.toString());
    //Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (isSelected) {
    setOpaque(true);
    setBackground(cellColor);
    else {
    setBackground(Color.white);
    setForeground(Color.black);
    return this;
    public void setColor(Color color)
    cellColor = color;
    ColorTable.this.repaint();
    public Color getColor() { return cellColor; }
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel();
    ColorTable table = new ColorTable();
    panel.add(table);
    frame.getContentPane().add(panel);
    frame.setSize(500,250);
    frame.setVisible(true);

  • HT2534 But now , the hole process of sign uping is changed , please remove the wrong guide its not working , and why apple not let to access the free app .!!!

    But now , the hole process of sign uping is changed , please remove the wrong guide its not working , and why apple not let to access the free app .!!!

    Try going to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • HT201303 Someone uses my apple ID to purchase, I have changed my password but not work . How can I disassociate my bank account with my APPLE ID?

    Someone uses my apple ID to purchase, I have changed my password but not work . How can I disassociate my bank account with my APPLE ID?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
     Cheers, Tom

  • My newly changed apple password is not working on my MacBook to help me change my password to log on?

    I just need help changing my password on my MacBook to log in. But my log in password and newly changed apple password are not working. Can I reset it or change the password another way or get a list of past password to try if those might be what the Mac thinks is my password still?

    You can reset it.
    For Snow Leopard and previous.
    http://support.apple.com/kb/ht1274
    For Lion and later.
    https://discussions.apple.com/docs/DOC-4101

  • How we can change JFrame Border Color Not Background.

    How we change jframe border color not background
    if any body know about that then plz tell me
    at this [email protected]
    i m thanksfull to ..... .

    hi Shafr
    beleive it or not, i got it using trial and error. i keep
    trying words in the function setStyle until the color changed. i
    dont know why it is not documented.
    var periodBarColor:SolidColor = new
    SolidColor(taskSchedColorChooser.selectedColor, 1);
    periodBar.setStyle("fill",periodBarColor);
    //where taskSchedColorChooser is colorPicker component. you
    can replace it by any color you want

  • Smart Guides Do Not Work

    My smart guides do not work. From the time I loaded CS5 they have not worked. If you go to View > Grids & Guides > the Smart Guides are grayed out.
    Then if you go to the Control Panel > View Options, the smart Guides are not grayed out they are checked.
    I have looked around and read trying to find out whats up with these guides but have not found anything the works. I have also uninstalled InDesign and reinstalled. This stall did not work.
    If anyone has any idea of why or how to get the guides to work that would be great.
      Thanks for your help...
                                   HHud

    You must have Snap to Document Grid enabled.
    Why is [Some Feature] Grayed Out in InDesign?

  • How to save bloger password in firefox 3.6.6 ? common ways at internet such as changing nsLoginManager.js is not working because the notepad cant save the new file.

    how to save bloger password in firefox 3.6.6 ?
    common ways at internet such as changing nsLoginManager.js is not working because the notepad cant save the new file.
    == URL of affected sites ==
    http://blogger.com

    Some sites like PayPal, Yahoo, Windows Live and bank sites use ''autocomplete="off"'' to prevent Firefox from saving the name and the password.
    If a site uses ''autocomplete="off"'' then look at this article for a bookmarklet to remove that autocomplete attribute.
    http://kb.mozillazine.org/User_name_and_password_not_remembered (bookmarklet)
    http://kb.mozillazine.org/Password_Manager
    See also http://en.wikipedia.org/wiki/Bookmarklet

  • How to change ruler guide to custom units

    I have changed the line grid to a custom size by this code:
    InterfacePtr<IUnitOfMeasureSettings> iUOMPref((IUnitOfMeasureSettings*)::QueryPreferences(IID_IUNITOFMEASURESETTINGS, pDoc->GetUIDRef()));
    iUOMPref->SetVertCustomPoints(gridDivision);
    where gridDivision is my number of points. This works.
    Now I'd like to apply the same unit to the vertical ruler guide. The value is already applied to custom units, but the measurement shown is still millimeters.
    What is the right way to switch to custom units?
    Thanks!

    Unfortunately, the last change did not update the vertical ruler immediately. So I decided to use a boss command:
    /* set line grid to user defined size (gridDivision):*/
    InterfacePtr<IUnitOfMeasureSettings> iUOMPref((IUnitOfMeasureSettings*)::QueryPreferences(IID_IUNITOFMEASURESETTINGS, pDoc->GetUIDRef()));
    iUOMPref->SetVertCustomPoints(gridDivision);
    /* set vertical ruler to user defined size:*/
    InterfacePtr<ICommand> smuCmd( CmdUtils::CreateCommand( kSetMeasureUnitsCmdBoss ) );
    if( !smuCmd )
        return false;
    InterfacePtr<IMeasureUnitsCmdData> smuData( smuCmd, IID_IIMEASUREUNITSCMDDATA );
    if( !smuData )
        return false;
    smuData->Set( pDoc->GetUIDRef(),
                    iUOMPref->GetYUnitOfMeasure(),
                       kRulerCustomMSBoss,
                       iUOMPref->GetTextUnitOfMeasure(),
                       iUOMPref->GetTextSizeUnitOfMeasure(),
                       iUOMPref->GetPrintUnitOfMeasure(),
                       iUOMPref->GetLineUnitOfMeasure(),
                       iUOMPref->GetHorzCustomPoints(),
                       gridDivision,
                       iUOMPref->GetKeyNudgeInc() ,
                       iUOMPref->GetPointsPerInch());
    if (CmdUtils::ProcessCommand(smuCmd) != kSuccess)
        return false;  
    Works fine.

  • Ruler guides are not exact, Can you Help?

    I'm dealing with a Block of text and the Frame is set to leading and the text is 10 pt and 11 pt leading. If i Drop a ruler guide on the baseline of the text I can put the continuation of the column in the next column and just line the top of the 2nd column frame to the base line of the next and the columns will line up exactly. my problem is about every 5th line of text I can't line the guide up exactly. It may be OCD but my lines are of by .0005 and I have to zero out the ruler guides nudge it .0005.
    I upgraded from indesign cs2 to cs5. In cs2 at 4000% view it was never a problem but now i waste time by having to zero the guide and type in the nudge in the controll pallete, before the upgrade this was never an issue.
    Is there something I'm missing?

    Excellent Idea, i set them up and they are working fine, I am able to snap to the grid. This is a great,  and negates the use and the time spent of laying down guides.
    But when the baseline grid is hidden I'm still not able to drop a ruler guide on the bottom of, lets say a serif on a lowercase "i" (this only happens about every 5th baseline, if you were to dray a ruler guide on 5 consecutive paragraph sentences and it seems like the one that don't work is the one i need, 50% of the time). With the baseline grid shown i shouldn't need the ruler guides as much, but it's still annoying that I can't do it. I've included a more Exaggerated close up of what I'm talking about. See how its just off on the 2nd line.
    I dont know if there is a fix? kind of a non issues with the baseline grid. Thanks for your help Peter.

  • Nebula grid GridItem.setForeground(color) not working

    I am using GridTableViewer and Nebula Grid.
    I am in processing of replacing old grid with new grid
    version = org.eclipse.nebula.widgets.grid_1.0.0.201506030727.
    I am setting individual row's foreground color.
    for ( int i=0; i < items.length; i++){
    items[i].setForeground(color); ;
    The above code worked with old grid version ver = 1.0.0.201209220511
    However it's not working with new version. What do I need to change?
    Thanks
    Dhiresh

    If you are using a GridTableViewer why are you then calling out to the
    SWT-API? It is the job of the LabelProvider to provide the foreground
    color.
    If you can reproduce this:
    a) with a Grid only snippet (no JFace viewer)
    b) with a GridTableViewer only snippet (no call to GridItem)
    File a bug and we can take a look if this is a regression
    Tom
    On 08.07.15 00:53, Dhiresh Patel wrote:
    > I have grid.setCellSelectionEnabled(true);
    >
    > What I found was that if I did GridItem.setForeground(index,
    > foreground); for
    > all the columns it works - meaning the whole row has that foreground color.
    >
    > But GridItem.setForeground(foreground); does not work - Has this been
    > changed?
    >
    > Thanks,
    >
    > Dhiresh

  • Mail rules in Lion not working

    Multiple issues here.
    Rules are not applied - though I confirm they should.
    Rules don't actually change.
    Has the whole rules functionality wor for you?
    Thanks

    After re-creating all of the 30 some rules I used in Snow Leopard in Mail in Lion, I discovered that many of them were not working properly.
    The rules that specified relatively simple criteria to match, such as specific strings to search for in the From, To, Subject fields, were working OK.
    The rules that weren't working properly were the ones for Apple Developer mailing lists, in which I look for a string value in the custom List-Id header. For example, if the List-Id of the email contains cocoa-dev.lists.apple.comcocoa-dev.lists.apple.com, move it to such-and-such a mailbox. I noticed after I added the custom header field to the list of rule headers (by using the Edit Header List… command), that List-Id was sometimes changed to just plain List. After quitting mail and looking at the saved version of Mail's rules (in the file /Users/<username>/Library/Mail/V2/MailData/MessageRules.plist), I found that Mail was saving the rules as List rather than the proper custom header of List-Id. As a result, the rules appeared not to work because, obviously, there was no List header value. After editing the MessageRules.plist manually with Property List Editor, and replacing List with List-Id, all of the rules started working properly.
    Just wondering what types of rules you guys had and whether it might be the same inability to save headers with a - in them.

  • Change of Status is not working in WebUI

    Hello All,
    Iam facing a problem in changing the status of the item in web UI requirement as follows.
    We need to set the item status from the To be Closed to Close.The status To be closed is set by an contract processor and schedules the Action .i.e Close item Once the contract approver execuets the action.It need to be change to Closed and the item end date need to be set to the date when the Action is execueted
    I have done my coding in the Execute method for the action Close item by using the FM CRM_ORDER_MAINTAIN
    to change the item enddate and CRM_STATUS_CHANGE_EXTERN to change the Status to Closed and the Commit Work .My code is working fine in GUI but this is not working in WebUI . I can only see it when i execute the action go to the edit mode.
    Can any one help me out in this regards.
    Thanks in Advance.
    Regards,
    Kiran Posanapalli.
    Edited by: posanapalli kiran on Feb 15, 2010 7:16 PM

    Hi Kiran,
    we're having the same issue that an opportunity is updated in the normal Gui but not in the WebUI when using FM CRM_ORDER_MAINTAIN.
    What coding did you use for fixing this?
    Kind regards,
    Roy Willems

  • "Old" update rule from ODS not working

    Hi Gurus,
    I need to set up the "old" fashioned update rule to load data from an ODS1 to another ODS2.
    The thing is that I need to set up an update rule because I need to implement a Return Table Routine that is not supported (as far as I know) by the new Transformation/DTP.
    When I select option (through the right mouse click over ODS1)  "Other Options" - "Create Update Rule" it takes me out of the RSA1 and leaves me in the main menu making it impossible to create a new update rule.
    The strange thing is that I have this working from and ODS to an InfoCube.....
    Suggestions, a workaround??
    Andrea.

    Hi Jerry,
    Just to confirm that this is not working. The tys_TG_1 structure only shows me the target infoprovider structure. Check that in the how to, to be able to derive employee first you need to assign eache source_filed to the result_field leaving employee blank.
    I need to have in the same place, the source_field structure (source infoprovider field structure) and the result_field structure (target infoprovider structure). That is what the "old" return table gives me as in the same place I can have the communication_structure (source infoprovider field structure) with the return_table structure (target infoprovider structure). 
    Just to understand, in the source infoprovider I have 12 Key Figures (1 for each period) and I have to split each incoming record to 12 records. If I work only with the result_field structure tys_TG_1 and the result_package tyt_TG_1 I'm not able the see those 12 KF.
    So... return table functionality is not fully supported by BW 7 as far as I know.
    Any other ideas why I'm not able to create the old Update Rules from an ODS?
    Regards,
    Andrea.

  • Auto-Submit On Change in DropDown List not working properly!

    Hi all,
    I�ve got a problem with a drop down list an a table with some rows on my page. The property "Auto-Submit on Change" is set for the drop down because the valueChange-method has to do some work when the user selects another value from the drop down.
    The problem is that after selecting another item from the drop down, the table fields don�t keep their values, which I had entered before I selected another item in the drop down. But: When I select an item again, suddenly exactly these values are set.
    Here my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1">
    <ui:table binding="#{Page1.table1}" id="table1" style="height: 488px; left: 24px; top: 120px; position: absolute; width: 1376px"
    title="Table" width="1376">
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{SessionBean1.columnProvider}" sourceVar="currentRow">
    <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="field1" id="tableColumn1" sort="field1">
    <ui:textField binding="#{Page1.textField1}" id="textField1" text="#{currentRow.value['field1']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="field2" id="tableColumn2" sort="field2">
    <ui:textField binding="#{Page1.textField2}" id="textField2" text="#{currentRow.value['field2']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn3}" headerText="field3" id="tableColumn3" sort="field3">
    <ui:textField binding="#{Page1.textField3}" id="textField3" text="#{currentRow.value['field3']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn4}" headerText="field4" id="tableColumn4" sort="field4">
    <ui:textField binding="#{Page1.textField4}" id="textField4" text="#{currentRow.value['field4']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn5}" headerText="field5" id="tableColumn5" sort="field5">
    <ui:textField binding="#{Page1.textField5}" id="textField5" text="#{currentRow.value['field5']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn6}" headerText="field6" id="tableColumn6" sort="field6">
    <ui:textField binding="#{Page1.textField6}" id="textField6" text="#{currentRow.value['field6']}"/>
    </ui:tableColumn>
    </ui:tableRowGroup>
    </ui:table>
    <ui:dropDown binding="#{Page1.dropDown1}" id="dropDown1" items="#{Page1.dropDown1DefaultOptions.options}"
    onChange="common_timeoutSubmitForm(this.form, 'dropDown1');"
    style="position: absolute; left: 48px; top: 24px; width: 240px; height: 24px" valueChangeListener="#{Page1.dropDown1_processValueChange}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    and the code of the valueChange-Method:
    public void dropDown1_processValueChange(ValueChangeEvent event) {
    getSessionBean1().getColumnProvider().commitChanges();
    List positions = getSessionBean1().getColumnProvider().getColumnList();
    Is there some explanation for this behavior or it�s really a bug in the way how the drop down is submitting the form? I would understand it when commitChanges is not working here because of auto submit on change (==immediate?). but once it works und once it doesn�t work!

    Hi There,
    Not sure what you mean. Have you tried Netbeans 6 yet. Do you see same behaviour in it as well?
    This might be of help to you
    http://www.netbeans.org/kb/55/dropdowncomp.html
    Thanks
    K

Maybe you are looking for

  • No Printer sharing since upgrading to 10.3.9

    Since upgrading my ibook to 10.3.9 I can no longer print via my DSL modem network (Epson stylus 6240). Printer Sharing worked great until this upgrade. In fact, now when I do attempt to print even from the iMac (where the printer is USB connected) I

  • I've been a paying member for nearly a year, now i got kicked into trial mode

    Its telling me i have 30 days left in my trial... what is going on?  I dont have time for this.

  • Counting repeating values

    I have to record league results and the points against each game and have a total of 84 to record for 15 teams. I have set it up to record Points, For and Against goals across the page from column C to CH but I have been unable to record the number o

  • How to delete a photo from "Photo Library"?

    How to delete a photo from "Photo Library"?

  • Updating a table  while joining

    Hi I am joining three tables a,b,c of which b and c are really large ( 20 million+ records). The join is running and in the mean time I am updating some rows in the table b and c. Will my join reflect the newly updated data in b and c? Will the join