Need to change pgm to add graphics to deskpane (desk) not the overlay panel

Hello everybody.
I recently had help in adding graphics to my program and I unintentionally requested that my graphics be added to a overlay panel. After further development I realized that I actually need the graphics to be painted to jdeskpane DESK. I assume that by doing this that the graphics will remain where I placed them (relative to the associated frames) when the scrollbar is utilized.
This might be a simple question, but I am new to graphics. Once I have the answer, I will analyze it and educate my self further.
Thank you in advance,
BAJH
* Copyright (c) 2007 BAH
* All rights reserved.
package com.newsystem.common;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.beans.PropertyVetoException;
import javax.swing.*;
import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JList;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.ListModel;
import javax.swing.ScrollPaneConstants;
import javax.swing.UIManager;
import javax.swing.event.InternalFrameEvent;
import javax.swing.event.InternalFrameListener;
public class A_Test_of_Frame_Connectors extends JDesktopPane {
     private static final long serialVersionUID = 1L;
     JDesktopPane desk;
     JScrollPane scrollpane;
     JInternalFrame iframe;
     JFrame frame;
     JList jList1;
     String currentframetitle;
     String currentframetip;
     String title;
     Integer maxwidth;
     Boolean definingsecondaryconnector;
     Boolean definingparentsecondaryconnector;
     Boolean definingchildsecondaryconnector;
     Rectangle secondaryparentrectangle;
     Rectangle secondarychildrectangle;
    double barb = 10.0;
    double phi = Math.toRadians(20.0);
    RenderingHints hints;
    Boolean drawline = false;
    Integer connectorcount;
    String[] connectiontype;
    String[] connectorparentframe;
    String[] connectorchildframe;
    JInternalFrame[] allframes;
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHints(hints);
        g2.setPaint(Color.blue);
        if (drawline){
              drawConnector(g2, secondaryparentrectangle, secondarychildrectangle);
    private void drawConnector(Graphics2D g2,Rectangle r1,Rectangle r2) {
        double dx = r2.getCenterX() - r1.getCenterX();
        double dy = r2.getCenterY() - r1.getCenterY();
        double theta = Math.atan2(dy, dx);
        Point2D.Double p1 = getIntersectionPoint(r1, theta);
        Point2D.Double p2 = getIntersectionPoint(r2, theta+Math.PI);
        Line2D.Double line = new Line2D.Double(p1, p2);
        drawArrowHeads(line, g2);
        g2.draw(line);
     public A_Test_of_Frame_Connectors(){
        hints = new RenderingHints(null);
        hints.put(RenderingHints.KEY_ANTIALIASING,
                  RenderingHints.VALUE_ANTIALIAS_ON);
        hints.put(RenderingHints.KEY_STROKE_CONTROL,
                  RenderingHints.VALUE_STROKE_PURE);
          definingsecondaryconnector = false;
          frame = new JFrame("All Frames in a JDesktopPane Container");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          scrollpane = new JScrollPane(desk,
                    ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
          scrollpane.setPreferredSize(new java.awt.Dimension(9925, 9580));
          desk = new JDesktopPane();
          desk.setPreferredSize(new java.awt.Dimension(15000, 30000));
               int i = 5;
               for (int j = 1; j <= i; j++){
                    UIManager.getDefaults().put("InternalFrame.icon", "");
                         ListModel jList1Model =
                              new DefaultComboBoxModel(
                                        new String[] { "Item One" });
                         title = "Frame " + j;
                         jList1 = new JList();
                         jList1.setModel(jList1Model);
                    jList1.setBounds(1, 1, 45, 54);
                    jList1.setEnabled(false);
                    iframe = new JInternalFrame("Internal Frame: " + j, false, false, false, false);
                    iframe.setName(String.valueOf(j));
                    iframe.setTitle(title);
                    Integer titlewidth;
                    if (title.length() < 30){
                         titlewidth = 265;
                    else{
                         titlewidth = title.length()*8 + 20;
                    iframe.setBounds(j*20, j*20,titlewidth , j*18 + 35);
                    iframe.add(jList1);
                    iframe.addInternalFrameListener(new InternalFrameListener(){
                         public void internalFrameClosing(InternalFrameEvent e) {}
                         public void internalFrameClosed(InternalFrameEvent e) {}
                         public void internalFrameOpened(InternalFrameEvent e) {}
                         public void internalFrameIconified(InternalFrameEvent e) {}
                         public void internalFrameDeiconified(InternalFrameEvent e) {}
                         public void internalFrameActivated(InternalFrameEvent e) {
                              currentframetitle = e.getInternalFrame().getTitle();
                              currentframetip = e.getInternalFrame().getToolTipText();
                              // Connectors
                              if (definingsecondaryconnector.equals(true)){
                                   if (definingparentsecondaryconnector.equals(true)){
                                        // Build dummy rectangle for creating connector                         
                                        secondaryparentrectangle = new Rectangle(e.getInternalFrame().getBounds());
                                        System.out.println("f name - "+e.getInternalFrame().getName());
                                        definingparentsecondaryconnector = false;
                                        definingchildsecondaryconnector = true;
                                   } else {
                                   if (definingchildsecondaryconnector.equals(true)){
                                        // Build dummy rectangle for creating connector                         
                                        secondarychildrectangle = new Rectangle(e.getInternalFrame().getBounds());
                                        // draw connector
                                           drawline = true;
                                           repaint();
                                           definingchildsecondaryconnector = false;
                         public void internalFrameDeactivated(InternalFrameEvent e) {}
                    iframe.setToolTipText("Internal Frame :" + j);
                    iframe.setVisible(true);
                    desk.add(iframe);
          scrollpane.setViewportView(desk);
          JMenuBar menubar = new JMenuBar();
          JButton SecondaryConnector = new JButton("Secondary Connector");
          SecondaryConnector.addMouseListener(new java.awt.event.MouseAdapter() {
               public void mousePressed(java.awt.event.MouseEvent e) {
                    definingsecondaryconnector = true;
                    definingparentsecondaryconnector = true;
                    definingchildsecondaryconnector = false;                    
                    try {
                         desk.getSelectedFrame().setSelected(false);
                    } catch (PropertyVetoException e1) {
                         // TODO Auto-generated catch block
                         e1.printStackTrace();
          JPanel overlayPanel = new JPanel();
             OverlayLayout overlay = new OverlayLayout(overlayPanel);
             overlayPanel.setLayout(overlay);
             this.setOpaque(false);
             overlayPanel.add(this);
             overlayPanel.add(scrollpane);
          menubar.add(SecondaryConnector);
          frame.setJMenuBar(menubar);
//          frame.add(scrollpane);
          frame.add(overlayPanel);
          scrollpane.setVisible(true);
          frame.setSize(800,600);
          frame.setVisible(true);
    private Point2D.Double getIntersectionPoint(Rectangle r, double theta) {
        double cx = r.getCenterX();
        double cy = r.getCenterY();
        double w = r.getWidth()/2;
        double h = r.getHeight()/2;
        double radius = Point2D.distance(0,0,w,h);
        double x = cx + radius * Math.cos(theta);
        double y = cy + radius * Math.sin(theta);
        Point2D.Double p = new Point2D.Double();
        int outcode = r.outcode(x, y);
        switch(outcode) {
            case Rectangle2D.OUT_TOP:             // 2
                p.x = cx - h*((x - cx)/(y - cy));
                p.y = cy - h;
                break;
            case Rectangle2D.OUT_LEFT:            // 1
                p.x = cx - w;
                p.y = cy - w*((y - cy)/(x - cx));
                break;
            case Rectangle2D.OUT_BOTTOM:          // 8
                p.x = cx + h*((x - cx)/(y - cy));
                p.y = cy + h;
                break;
            case Rectangle2D.OUT_RIGHT:           // 4
                p.x = cx + w;
                p.y = cy + w*((y - cy)/(x - cx));
                break;
            default:
                System.out.println("Non-cardinal outcode: " + outcode);
        return p;
    private void drawArrowHeads(Line2D.Double line, Graphics2D g2) {
        double dy = line.getY2() - line.getY1();
        double dx = line.getX2() - line.getX1();
        double theta = Math.atan2(dy, dx);
        drawArrowHead(line.getP2(), theta, g2);
        drawArrowHead(line.getP1(), theta+Math.PI, g2);
    private void drawArrowHead(Point2D tip, double theta, Graphics2D g2) {
        double x = tip.getX() - barb * Math.cos(theta+phi);
        double y = tip.getY() - barb * Math.sin(theta+phi);
        g2.draw(new Line2D.Double(tip.getX(), tip.getY(), x, y));
        x = tip.getX() - barb * Math.cos(theta-phi);
        y = tip.getY() - barb * Math.sin(theta-phi);
        g2.draw(new Line2D.Double(tip.getX(), tip.getY(), x, y));
     public static void main(String[] args) {
          A_Test_of_Frame_Connectors d = new A_Test_of_Frame_Connectors();
}

Hello everybody.
I recently had help in adding graphics to my program and I unintentionally requested that my graphics be added to a overlay panel. After further development I realized that I actually need the graphics to be painted to jdeskpane DESK. I assume that by doing this that the graphics will remain where I placed them (relative to the associated frames) when the scrollbar is utilized.
This might be a simple question, but I am new to graphics. Once I have the answer, I will analyze it and educate my self further.
Thank you in advance,
BAJH
* Copyright (c) 2007 BAH
* All rights reserved.
package com.newsystem.common;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.beans.PropertyVetoException;
import javax.swing.*;
import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JList;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.ListModel;
import javax.swing.ScrollPaneConstants;
import javax.swing.UIManager;
import javax.swing.event.InternalFrameEvent;
import javax.swing.event.InternalFrameListener;
public class A_Test_of_Frame_Connectors extends JDesktopPane {
     private static final long serialVersionUID = 1L;
     JDesktopPane desk;
     JScrollPane scrollpane;
     JInternalFrame iframe;
     JFrame frame;
     JList jList1;
     String currentframetitle;
     String currentframetip;
     String title;
     Integer maxwidth;
     Boolean definingsecondaryconnector;
     Boolean definingparentsecondaryconnector;
     Boolean definingchildsecondaryconnector;
     Rectangle secondaryparentrectangle;
     Rectangle secondarychildrectangle;
    double barb = 10.0;
    double phi = Math.toRadians(20.0);
    RenderingHints hints;
    Boolean drawline = false;
    Integer connectorcount;
    String[] connectiontype;
    String[] connectorparentframe;
    String[] connectorchildframe;
    JInternalFrame[] allframes;
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHints(hints);
        g2.setPaint(Color.blue);
        if (drawline){
              drawConnector(g2, secondaryparentrectangle, secondarychildrectangle);
    private void drawConnector(Graphics2D g2,Rectangle r1,Rectangle r2) {
        double dx = r2.getCenterX() - r1.getCenterX();
        double dy = r2.getCenterY() - r1.getCenterY();
        double theta = Math.atan2(dy, dx);
        Point2D.Double p1 = getIntersectionPoint(r1, theta);
        Point2D.Double p2 = getIntersectionPoint(r2, theta+Math.PI);
        Line2D.Double line = new Line2D.Double(p1, p2);
        drawArrowHeads(line, g2);
        g2.draw(line);
     public A_Test_of_Frame_Connectors(){
        hints = new RenderingHints(null);
        hints.put(RenderingHints.KEY_ANTIALIASING,
                  RenderingHints.VALUE_ANTIALIAS_ON);
        hints.put(RenderingHints.KEY_STROKE_CONTROL,
                  RenderingHints.VALUE_STROKE_PURE);
          definingsecondaryconnector = false;
          frame = new JFrame("All Frames in a JDesktopPane Container");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          scrollpane = new JScrollPane(desk,
                    ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
          scrollpane.setPreferredSize(new java.awt.Dimension(9925, 9580));
          desk = new JDesktopPane();
          desk.setPreferredSize(new java.awt.Dimension(15000, 30000));
               int i = 5;
               for (int j = 1; j <= i; j++){
                    UIManager.getDefaults().put("InternalFrame.icon", "");
                         ListModel jList1Model =
                              new DefaultComboBoxModel(
                                        new String[] { "Item One" });
                         title = "Frame " + j;
                         jList1 = new JList();
                         jList1.setModel(jList1Model);
                    jList1.setBounds(1, 1, 45, 54);
                    jList1.setEnabled(false);
                    iframe = new JInternalFrame("Internal Frame: " + j, false, false, false, false);
                    iframe.setName(String.valueOf(j));
                    iframe.setTitle(title);
                    Integer titlewidth;
                    if (title.length() < 30){
                         titlewidth = 265;
                    else{
                         titlewidth = title.length()*8 + 20;
                    iframe.setBounds(j*20, j*20,titlewidth , j*18 + 35);
                    iframe.add(jList1);
                    iframe.addInternalFrameListener(new InternalFrameListener(){
                         public void internalFrameClosing(InternalFrameEvent e) {}
                         public void internalFrameClosed(InternalFrameEvent e) {}
                         public void internalFrameOpened(InternalFrameEvent e) {}
                         public void internalFrameIconified(InternalFrameEvent e) {}
                         public void internalFrameDeiconified(InternalFrameEvent e) {}
                         public void internalFrameActivated(InternalFrameEvent e) {
                              currentframetitle = e.getInternalFrame().getTitle();
                              currentframetip = e.getInternalFrame().getToolTipText();
                              // Connectors
                              if (definingsecondaryconnector.equals(true)){
                                   if (definingparentsecondaryconnector.equals(true)){
                                        // Build dummy rectangle for creating connector                         
                                        secondaryparentrectangle = new Rectangle(e.getInternalFrame().getBounds());
                                        System.out.println("f name - "+e.getInternalFrame().getName());
                                        definingparentsecondaryconnector = false;
                                        definingchildsecondaryconnector = true;
                                   } else {
                                   if (definingchildsecondaryconnector.equals(true)){
                                        // Build dummy rectangle for creating connector                         
                                        secondarychildrectangle = new Rectangle(e.getInternalFrame().getBounds());
                                        // draw connector
                                           drawline = true;
                                           repaint();
                                           definingchildsecondaryconnector = false;
                         public void internalFrameDeactivated(InternalFrameEvent e) {}
                    iframe.setToolTipText("Internal Frame :" + j);
                    iframe.setVisible(true);
                    desk.add(iframe);
          scrollpane.setViewportView(desk);
          JMenuBar menubar = new JMenuBar();
          JButton SecondaryConnector = new JButton("Secondary Connector");
          SecondaryConnector.addMouseListener(new java.awt.event.MouseAdapter() {
               public void mousePressed(java.awt.event.MouseEvent e) {
                    definingsecondaryconnector = true;
                    definingparentsecondaryconnector = true;
                    definingchildsecondaryconnector = false;                    
                    try {
                         desk.getSelectedFrame().setSelected(false);
                    } catch (PropertyVetoException e1) {
                         // TODO Auto-generated catch block
                         e1.printStackTrace();
          JPanel overlayPanel = new JPanel();
             OverlayLayout overlay = new OverlayLayout(overlayPanel);
             overlayPanel.setLayout(overlay);
             this.setOpaque(false);
             overlayPanel.add(this);
             overlayPanel.add(scrollpane);
          menubar.add(SecondaryConnector);
          frame.setJMenuBar(menubar);
//          frame.add(scrollpane);
          frame.add(overlayPanel);
          scrollpane.setVisible(true);
          frame.setSize(800,600);
          frame.setVisible(true);
    private Point2D.Double getIntersectionPoint(Rectangle r, double theta) {
        double cx = r.getCenterX();
        double cy = r.getCenterY();
        double w = r.getWidth()/2;
        double h = r.getHeight()/2;
        double radius = Point2D.distance(0,0,w,h);
        double x = cx + radius * Math.cos(theta);
        double y = cy + radius * Math.sin(theta);
        Point2D.Double p = new Point2D.Double();
        int outcode = r.outcode(x, y);
        switch(outcode) {
            case Rectangle2D.OUT_TOP:             // 2
                p.x = cx - h*((x - cx)/(y - cy));
                p.y = cy - h;
                break;
            case Rectangle2D.OUT_LEFT:            // 1
                p.x = cx - w;
                p.y = cy - w*((y - cy)/(x - cx));
                break;
            case Rectangle2D.OUT_BOTTOM:          // 8
                p.x = cx + h*((x - cx)/(y - cy));
                p.y = cy + h;
                break;
            case Rectangle2D.OUT_RIGHT:           // 4
                p.x = cx + w;
                p.y = cy + w*((y - cy)/(x - cx));
                break;
            default:
                System.out.println("Non-cardinal outcode: " + outcode);
        return p;
    private void drawArrowHeads(Line2D.Double line, Graphics2D g2) {
        double dy = line.getY2() - line.getY1();
        double dx = line.getX2() - line.getX1();
        double theta = Math.atan2(dy, dx);
        drawArrowHead(line.getP2(), theta, g2);
        drawArrowHead(line.getP1(), theta+Math.PI, g2);
    private void drawArrowHead(Point2D tip, double theta, Graphics2D g2) {
        double x = tip.getX() - barb * Math.cos(theta+phi);
        double y = tip.getY() - barb * Math.sin(theta+phi);
        g2.draw(new Line2D.Double(tip.getX(), tip.getY(), x, y));
        x = tip.getX() - barb * Math.cos(theta-phi);
        y = tip.getY() - barb * Math.sin(theta-phi);
        g2.draw(new Line2D.Double(tip.getX(), tip.getY(), x, y));
     public static void main(String[] args) {
          A_Test_of_Frame_Connectors d = new A_Test_of_Frame_Connectors();
}

Similar Messages

  • I need to change my Apple id in my phone to match the new id i set up online.  How do I do that?  I dont have the password to that email address.

    I need to change my Apple id in my phone to match the new id i set up online.  How do I do that?  I dont have the password to that email address.

    Go to Settings>Store (or Settings>iTunes and App Stores for iOS 6) and sign out and sign in with the other/updated account.

  • HT5312 Hello everyone, i need to change my rescue email address in order to retrieve the answers to my secret questions which I forgot. Any clues on how to do that? Thanks in advance

    Hello everyone, i need to change my rescue email address in order to retrieve the answers to my secret questions which I forgot. Any clues on how to do that? Thanks in advance

    If you can't remember your security questions go to  Express Lane , select iTunes from the list, then iTunes store.    On the next screen select account Management.    There, select iTunes store account security and write that you would like to reset your security questions and / or answers.
    You should get an eMail reply over the next 24 hours.

  • I need to change my security questions. But it's sending the link to an old email. Suggestions?

    I need to change my security questions. But it's sending the link to an old email. Suggestions?

    You won't be able to change your rescue email address until you can answer your questions, you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down this page to update your rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • I am trying to re-instal Acrobat Pro on my computer after changing OS and resetting everything. I am using the CC panel for intallation. It shows it installed and won't let me install it.

    I am trying to re-instal Acrobat Pro on my computer after changing OS and resetting everything. I am using the CC panel for installation. It shows it installed and won't let me install it. I doubled check everything on my computer and it is not installed. Even more, all my PDF files now show an HTML extension rather that PDF and only opens in my browser, which means the program is not here.
    How to re-install it, please, when the CC panel installer won't let me do it? Thanks!

    Try "Pacifist"!
    Pacifist is an application for Mac OS X that opens up .pkg installer packages, .dmg disk images, .zip, .tar, .tar.gz, .tar.bz2, .pax, and .xar archives, and more, and lets you install individual files out of them. This is useful if you need to install just one file out of a package instead of the entire package

  • I changed my apple I'd e mail. Not the password. I cannot change the email in iCloud

    I changed my apple I'd email , not the password. I cannot change the I'd on iCloud

    You will need to delete the account from your iPad and then sign in using your updated details.
    To delete the account go to Settings>iCloud, scroll down and then select "Delete Account".
    On a PC sign out and back into the iCloud control panel.

  • I need to restore an iphone 4 to 7.0.6 not the current 7.1

    I need to restore an passcode locked CMDA iPhone 4 to 7.0.6 not the current 7.1. This is due to a mobile management application that our company uses that has not been verified to work with 7.1 yet. This iPhone is current on 5.1.0. I am trying to do the restore via iTunes and am using an old ipsw file for 7.0.6 but I keep getting the 3194 error when it tries to restore. I have tried all the "hosts" fil e suggestions but keep getting the same result. Is it no longer possible to restore an iPhone to an older version of iOS, even only one upgrade back??

    Sorry, but it will only install the latest version (7.1).

  • Envelopes Help NEEDED? I want to add graphics....

    In MS work, your only options are TEXT bases and I would like to know if pages can do envelopes so I can add a graphic?
    Anyway, I printed it out using pages and the text (the TO (SENDER) looks to far to the right, I want it more in the center...
    Please help...
    thanks

    In MS work, your only options are TEXT bases and I
    would like to know if pages can do envelopes so I can
    add a graphic?
    Anyway, I printed it out using pages and the text
    (the TO (SENDER) looks to far to the right, I want it
    more in the center...
    Please help...
    thanks
    nevermind, just did a view layout and changed the tab anchors....
    Thanks

  • I need to change my email add for my contact form

    Hi there
    I'm making a homepage in Muse for friend of mine. She needs online booking on her page. How is it possible with Muse?
    Please help, if someone knows how to do
    Thanks
    Sara

    Hi Sara,
    Not sure what you are asking as the topic doesn't seem to match the comment
    As for changing the email on a contact form just select the form, click on the small blue icon to open the properties and simply replace the email address there.

  • How can I add graphics and other items to the content manager in PSE 10?

    I am hoping to add some jpg and png files to my content manager in PSE 10 for easy access, but can't figure out how.  Would appreciate any help so I can start scrapbooking with my new software!

    Steps from other forum post with folder locations translated to Mac
    II. Place the files in the appropriate directory.
    Copy those three files into this directory:
    "HD/Library/Application Support/Adobe/Photoshop Elements/10.0/Photo Creations/backgrounds"
    III. Have PSE recognize the new files.
    Browse to this directory:
    "HD/Library/Application Support/Adobe/Photoshop Elements/10.0/Locale/en_US"
    and delete or rename this file:
    MediaDatabase.db3
    Browse to this directory:
    "HD/Library/Application Support/Adobe/Photoshop Elements/10.0"
    and delete or rename this file:
    ThumbDatabase.db3

  • Need to change color of one column's value depending on the other column

    Hi,
    i have a search form which displays two column values
    First column value's colour should be based on second column's value
    For example, if second column has values 'Active', 'Inactive' and 'Pending'
    If 'Active' , the first column value's color sholud be 'red'
    If 'inacitve, another color ....
    Thanks in advance,

    Hi!
    What we did was we added a column on the VO that returns kind of a css part (for example if a column value is 'Active' the value of this column should be "background-color:rgb(255,0,0);")
    Than you use something like this on your column:
    inlineStyle="#{row.StatusStyle}"where StatusStyle is the name of the column with "background-color:rgb(255,0,0);" value.
    The problem here can be that the background color doesn't cover the whole column but only the text in it (so if it is null, the color is default).
    If you want the whole column to be of this color you use something like this:
                                        <af:column ...>
                                          <afh:tableLayout ...>
                                            <afh:rowLayout ...>
                                              <afh:cellFormat inlineStyle="#{row.StatusStyle}" ...>
                                                <af:outputText ...>
                                                </af:outputText>
                                              </afh:cellFormat>
                                            </afh:rowLayout>
                                          </afh:tableLayout>
                                        </af:column>Basically you put another table layout inside a column instead just a outputText (or whatever control you use)
    Hope this is understandable and it helps :)
    It works for us.
    BB

  • How can I change a language on a purchased movie. Not the subtitles, but on screen language. I have watched this particular move many times in English, now the characters are speaking French.

    How can I change the on screen language in a movie from French to English? Not subtitles, but spoken language. The purchased movie is from iTunes and I'm on a iMac. The movie in question has been played a number of times in English, and suddenly it's the French version.

    iTunes: Language settings for video - http://support.apple.com/kb/HT5562 - Alternate language support may be available as audio track and/or subtitles, but not available for all movies

  • I forgot my iCloud password and I am not able to change it. It just allows me to change my Apple ID and its password but not the one of iCloud. I tried to delete my iCloud account but then they ask me about the password. What can I do?

    Hello, my problem is written above. Please help me!
    Thank you

    Hi 25091996,
    Thanks for visiting Apple Support Communities.
    If your Apple ID is disabled for security reasons, try resetting your password via the web using the steps in this article:
    Apple ID: 'This Apple ID has been disabled for security reasons' alert appears
    http://support.apple.com/kb/ts2446
    You may not be able to change your iCloud email address, but once your password is reset you can remove your iPhone from Find My iPhone using the steps in this article:
    iCloud: Remove your device from Find My iPhone
    http://support.apple.com/kb/ph2702
    If you're not sure why your Apple ID was disabled, you may want to contact Apple support for more information:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Best Regards,
    Jeremy

  • My Tool Bar keeps changing, one minute I'll have features and not the next. URLs don't show in the Address Bar -- all of this started after the last up-date

    Since the most recent up-date of Firefox I've had buttons on the tool bar vanish and then return when I change web sites, etc. Too, the address bar does not show URLs a lot of time, especially after a search and I click to the link. I have to look under page properties to find the web address in order to link to pages later or even book mark them.
    Please email me @ [email protected]

    I noticed ''similar behavior'' on what I had thought to be modified pop-up windows. But I accidentally created a new window (tab tearing) and the new window did not have menu bar or tabs bar, but if I selected that window then it showed all toolbars and the original window the reduced set and can keep switching between the two to keep reversing which is which. Needless to say I can't duplicate it again. The location showed "Go to web" instead of the location on the new window, reload did not fix that, but creating a new tab did fix that upon return to the tab.

  • I lost my iPad and need to change my apple ID.

    Hi Everyone
    Please help before I hit my new mac with a sledge hammer!!
    I recently lost my ipad and need to change my apple ID. When I go to the ID page it gives me the option of changing any of my details except my ID which does not have an edit button next to it. How can I change the ID itself and would I lose access to my existing apps if I did change it? I have spent hours signing out of every feature on both my mac and iphone but how can i do this from my now lost ipad and would it make any difference if i could? I am very confused and frustrated with all the apple jargon on the help pages and support communities. Please can somebody help by talking english to me??

    Why do you want to change the ID? If it's because you've lost your iPad just change the password so that the person now in posession of it can't get into your iCloud account.
    If you really want to change the address which forms the ID you can do this at http://appleid.apple.com provided that it isn't an @icloud.com, @me.com or @mac.com address - if it's one of those that would explain why you don't have an 'edit' button and you can't change it.
    It you were able to change the ID that won't affect your access to apps since the account itself remains the same, though of course the login has to be changed on every device signed into iCloud or iTunes.
    If you are going to change either the ID or the password you must turn of 'Find My iPhone' on any device it is enabled on or you will find yourself in difficulties.

Maybe you are looking for

  • My Phone Cannot Place Calls or Receive them

    This is the Second Time this Problem has Happened. Each Time followed a Plane Trip from Detroit to Kansas City MO. The Phone Was Turned OFF while on the plane both times. I can Text and Receive DATA ONLY! Any call Place results with a message "The Nu

  • Down payment req

    hi, I have an issue with relevant to the GL account assignment in down payment requests. In OBYR I have defined a new special GL indicator as “c” and defined a recon account (240070) and a special GL account (150070). This GL account which I have ass

  • Using openDoc in internet explorer

    Hi all, I have a pdf file with links to other documents using JavaScript, openDoc. This works perfect in Acrobat reader and Acrobat pro. Now some user wants to open the pdf in Internet Explorer with the pdf plugin. This works to some extent, other Ja

  • Problem while reading special characters in java

    Hi i am faving the follwing xml. <ns1:dc_application_bullets> <w:p wsp:rsidR="004E4084" wsp:rsidRPr="007024E6" wsp:rsidRDefault="000D5B97" wsp:rsidP="007024E6"> <w:r> <w:rPr> <w:rFonts w:ascii="Arial Unicode MS" w:fareast="Arial Unicode MS" w:h-ansi=

  • Blocking Due to Quality Inspection in MIRO

    Dear Sir, We have a scenario that during MIRO , Invoice should get Blocked automatically  incase UD has not been done for Inspection lot in reference to the GR against which MIRO is being performed . Kindly guide us , as what steps need to be followe