Need help on responsive layout

Hi Folks,
In order to make the SAPUI5 application responsive in nature, we are trying to use ResponsiveFlowLayout/ResponsiveLayout/ResponsiveGridLayout as per the details available in below links. But, in this case the sample code are done via JS view, so how is possible via XML view?
https://sapui5.hana.ondemand.com/sdk/test-resources/sap/ui/layout/demokit/ResponsiveGridLayout.html
https://sapui5.hana.ondemand.com/sdk/test-resources/sap/ui/layout/demokit/ResponsiveLayout.html
https://sapui5.hana.ondemand.com/sdk/test-resources/sap/ui/layout/demokit/ResponsiveFlowLayout.html
Regards,
Diptanu

Hi Diptanu,
Refer to the below sample code:
<mvc:View height="100%" xmlns:core="sap.ui.core" xmlns:form="sap.ui.layout.form" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
  controllerName="my.own.controller" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:c="sap.ui.commons" xmlns:layout="sap.ui.layout">
   <Page title="Layouts">
    <form:SimpleForm id="myForm" minWidth="1024" layout="ResponsiveLayout">
     <form:content>
      <Label text="Name">
       <layoutData>
        <layout:ResponsiveFlowLayoutData weight="12"></layout:ResponsiveFlowLayoutData>
       </layoutData>
      </Label>
      <Input value="Responsive Layouts">
       <layoutData>
        <layout:ResponsiveFlowLayoutData weight="8"></layout:ResponsiveFlowLayoutData>
       </layoutData>
      </Input>
     </form:content>
    </form:SimpleForm>
   </Page>
  </mvc:View>
Hope this helps!
Regards,
Anusha

Similar Messages

  • Need help with Page Layout and Background Scaling

    hello, everyone.
    I am in the process of designing a new website for myself,
    and while I was researching nicely designed pages to use as
    inspiration, I stumbled upon this site:
    http://www.jeffsarmiento.com/
    obviously, the design is very impressive, but it also
    incorporates a lot of web mechanics that I have been trying to
    figure out, so I will use this page as an example.
    one thing I need help with is backgrounds. as you can see in
    the posted website, the creator used a seamlessly tiled paper
    texture to display the bulk of his content on. also make not of the
    pattern that is located to the left of the paper texture. how do I
    create seamless backgrounds like this that will scale to fit any
    amount of content or any resolution? I can't imagine that the guy
    that made that site created a new size background every time he
    made an update, so there has to be an easier way.
    the second thing that I am having trouble with is general
    site layout. I have read that most sites used series of invisible
    tables to organize there content, but when I open the source of
    this page in dreamweaver, he was using something different. div
    tags? should I be using these? who do I use them? are there any
    general layout tips that someone could pass on to me? perhaps a
    link to a good tutorial?
    please help me. i am very confused.
    thanks so much.

    IMO not a good site to emulate. To wit:
    Top background image:
    http://www.jeffsarmiento.com/images/bg-top.jpg;
    745px
    x 350px 137K
    Main background image:
    http://www.jeffsarmiento.com/images/bg-tile.jpg;
    745px x 950px 130K
    Total page size: 454K (Check here:
    www.websiteoptimization.com)
    Website usability experts routinely recommend a maximum page
    size of ~80K
    Check out the We We Scale @ www.FutureNowInc.com/wewe/ where
    they suggest,
    "You speak about yourself approximately 0,003 times as often
    as you speak
    about your customers. Might that have an impact on your
    effectiveness?"
    That is 100% consistent with the #1 Web Design mistake:
    "Believing people
    care about you and your web site." or to phrase more
    expansively, "Our site
    tries to tell you how wonderful we are as a company, but not
    how we're going
    to solve your problems."
    www.sitepoint.com has some excellent books on making a
    website actually
    attractive and usable at the same time.
    Walt
    "beWILLdered_" <[email protected]> wrote in
    message
    news:[email protected]...
    > hello, everyone.
    > I am in the process of designing a new website for
    myself, and while I was
    > researching nicely designed pages to use as inspiration,
    I stumbled upon
    > this
    > site:
    >
    http://www.jeffsarmiento.com/
    > obviously, the design is very impressive, but it also
    incorporates a lot
    > of
    > web mechanics that I have been trying to figure out, so
    I will use this
    > page as
    > an example.
    > one thing I need help with is backgrounds. as you can
    see in the posted
    > website, the creator used a seamlessly tiled paper
    texture to display the
    > bulk
    > of his content on. also make not of the pattern that is
    located to the
    > left of
    > the paper texture. how do I create seamless backgrounds
    like this that
    > will
    > scale to fit any amount of content or any resolution? I
    can't imagine that
    > the
    > guy that made that site created a new size background
    every time he made
    > an
    > update, so there has to be an easier way.
    > the second thing that I am having trouble with is
    general site layout. I
    > have
    > read that most sites used series of invisible tables to
    organize there
    > content,
    > but when I open the source of this page in dreamweaver,
    he was using
    > something
    > different. div tags? should I be using these? who do I
    use them? are there
    > any
    > general layout tips that someone could pass on to me?
    perhaps a link to a
    > good
    > tutorial?
    > please help me. i am very confused.
    >
    > thanks so much.
    >

  • Need Help with particular layout

    Hi,
    I need help with a particular layout with jsf.
    I dont be able to get this layout with checkbox and inputtext.
    label checkbox
    label checkbox
    label checkbox
    label checkbox
    label checkbox labelinputtext inputext
    with panelgrid I obtain only this one
    label checkbox
    label checkbox
    label checkbox labelinputtext inputext
    label checkbox
    label checkbox
    But I want place inputext and its label next to the last checkbox.
    Could someone help me? Thanks

    <h:panelGrid columns="2">
         <h:selectManyCheckbox layout="pageDirection" styleClass="styled">
              <f:selectItem itemLabel="Ischemica" itemValue="Ischemica"/>
              <f:selectItem itemLabel="Ipertensiva" itemValue="Ipertensiva"/>
              <f:selectItem itemLabel="Valvolare" itemValue="Valvolare"/>
              <f:selectItem itemLabel="Cardiomiopatia" itemValue="Cardiomiopatia"/>
              <f:selectItem itemLabel="Altro" itemValue="Altro" />
         </h:selectManyCheckbox>     
         <h:panelGrid columns="2" styleClass="tableA" >
              <h:outputText value="Specificare" />
              <h:inputText value="" styleClass="styled2" />
         </h:panelGrid>
    </h:panelGrid>     
    In my css I insert class
    .tableA{
    vertical-align: bottom;
    }

  • Need help with Responsive HTML5 screen layout in RoboHelp HTML 11

    I have a few questions/issues regarding screen layouts for Responsive HTML5 output in RoboHelp HTML 11.
    First off, I decided to just use the Theme1_Standard layout that came with the program (only other default option was Theme2_Government) and started customizing the layout. I originally added a company logo to the 'Header' component in the Customization dialog, but have since decided to remove it. I can't seem to do this from the dialog, so I tried just deleting the image file from the whole project. The file is gone, but the logo is still there. This is only displayed in the header when a topic is displayed, it does not appear in the header at the TOC, Index, Search screen, etc. How do I get rid of this???
    Secondly, the text in the header for the topic screens appears differently than the one on the screens for the TOC, Index, Search, etc. In the former of these, the header is displayed in maroon text in a much smaller font, similar to that used in the topics. In the latter, the topic is displayed based on what I configured in the Layout Customization dialog; much larger in white text on a black background. In each case the heading text serves as a link to the default display topic shown when the help file is launched, which is fine. However, how do I get the header to be consistent across all screens (topics and TOC, Index, etc. alike)???
    As a result of these issues with the Theme1_Standard layout, I'm trying to import a different Responsive HTML5 screen layout than the two provided within RoboHelp HTML 11 (Standard and Government). I did some digging in the program help and found another layout I'd like to use (Theme3_Black.zip) at RoboHelp screen profiles and layouts. I tried importing the new layout, but it's looking for a .SLZ file and the only one in the files that came with the ZIP file is SLZConfig.xml, and I don't think that's what I need, though quite honestly, I don't know.
    I extracted the contents of the ZIP folder to a folder in the !ScreenLayout! folder within the RoboHelp project, but when I open the project, I don't see Theme3_Black as an option. I need to figure out how to import this screen layout because the color scheme matches the one used in the program for which I am writing the help. How do I import and apply this other screen layout???
    Any tips, tricks, or guidance on any or all of these items would be GREATLY appreciated.
    Thanks much in advance,
    Dave

    Item two of the original post is also something I am having issues with:
    "Secondly, the text in the header for the topic screens appears differently than the one on the screens for the TOC, Index, Search, etc. In the former of these, the header is displayed in maroon text in a much smaller font, similar to that used in the topics. In the latter, the topic is displayed based on what I configured in the Layout Customization dialog; much larger in white text on a black background. In each case the heading text serves as a link to the default display topic shown when the help file is launched, which is fine. However, how do I get the header to be consistent across all screens (topics and TOC, Index, etc. alike)???"
    We have the text toggle between red, white and blue depending upon the topic selected. In the customize Selected Layout we have the title color set to white. It seems to think that it is a link and I would like to know how I can force the text to be white and to stay that way no matter which topic is selected.

  • Need help on page layout.

    Hi all,
    I have 3 issues like
    1. I need to create 3 LOV's(these 3 values should come from VO) in the AF Query.
    2. I have 2 tables, which radio button i have selected the related data should needs to come in the 2nd table. logic is ready I have written a method to call that vo but here my doubt where should i need to put i tried with attributeChangeListener of the 1st table but it's didn't work. and constructor of the page backing bean it's working when i click on any button on the page.
    3. I need to divide my page into 4 parts like top, middle, bottom and middle should be devided horizontally 2 parts. i tried with panel splitter but user doesn't like it, then i tried with the
    <af:panelGroupLayout binding="#{backingBeanScope.backing_app_ProcessCalc.panelGroupLayout3}"
    id="panelGroupLayout3" halign="start">
    // here i have top code like af query
    </panelGroupLayout
    <af:panelGroupLayout binding="#{backingBeanScope.backing_app_ProcessCalc.panelGroupLayout6}"
    id="panelGroupLayout6" layout="horizontal">
    <af:panelGroupLayout binding="#{backingBeanScope.backing_app_ProcessCalc.panelGroupLayout4}"
    id="panelGroupLayout4" halign="left" layout="horizontal">
    // here i have left code trinida table with panel box
    </panelGroupLayout >
    <af:panelGroupLayout binding="#{backingBeanScope.backing_app_ProcessCalc.panelGroupLayout5}"
    id="panelGroupLayout5" halign="right" layout="horizontal">
    //here i have right code panel box with 2 buttons
    </panelGroupLayout
    </panelGroupLayout >
    last i have added panel box with trinida table.
    Here the problem is panel boxes are moving like if there is no result on the table then panel box is going small, i need to fix all these layout to page
    Can any one help in all these.

    Use a panelStetchLayout to get the various area (top, middle, bottom) then in the middle/center you can use either a panel splitter or another panelStretchLayout.
    Don't forget to set the sizes for the various facet of the panelStretchLayout.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/panelStretchLayout.jspx
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/adf-richclient-api/tagdoc/af_panelStretchLayout.html

  • Need help with landscape layout

    Need some help. Tyring to build layout for a financial report. Each report will have 1) data block with company name, stock symbol and price 2) one or two line headline 3) two to three paragraphs of text and 4) large graph...I cant seem to get a nice layout which accents the company information and has enough space around the headline. . I tried putting the information block at top left, the paragraphs directly below and then the headline and graph towards the right side.
    Doesn't seem to be working..... Any tips on setup/placement would be appreciated

  • Need help with responsibility/ functions query

    hi,
    we are working in oracle applications 11i.
    I have a requirement to extract the responsibility list of functions and menus.
    I need to omit the excluded menus from each responsibility
    this what I have so far (after researching the internet):
    SELECT
    FRTL.RESPONSIBILITY_NAME,
    FFL.USER_FUNCTION_NAME, FFF.FUNCTION_NAME,ft.RESPONSIBILITY_NAME
    FROM
    FND_USER_RESP_GROUPS FURG,
    fnd_responsibility_tl ft ,
    FND_RESPONSIBILITY FR,
    FND_COMPILED_MENU_FUNCTIONS FCMF,
    FND_FORM_FUNCTIONS FFF,
    FND_RESPONSIBILITY_TL FRTL,
    FND_FORM_FUNCTIONS_TL FFL
    WHERE
    FURG.RESPONSIBILITY_ID = FR.RESPONSIBILITY_ID
    and ft.RESPONSIBILITY_ID(+)= fr.RESPONSIBILITY_ID
    AND FURG.RESPONSIBILITY_APPLICATION_ID = FR.APPLICATION_ID
    AND FR.MENU_ID = FCMF.MENU_ID
    AND FCMF.GRANT_FLAG = 'Y'
    AND FCMF.FUNCTION_ID = FFF.FUNCTION_ID
    AND SYSDATE BETWEEN FR.START_DATE AND NVL(FR.END_DATE, SYSDATE+1)
    and fr.CREATION_DATE >= to_date('01-jan-2005','dd-mon-yyyy')
    AND FURG.RESPONSIBILITY_ID = FRTL.RESPONSIBILITY_ID
    AND FR.RESPONSIBILITY_ID = FRTL.RESPONSIBILITY_ID
    AND FRTL.LANGUAGE = 'US'
    AND FFL.LANGUAGE = 'US'
    AND FFF.FUNCTION_ID = FFL.FUNCTION_ID
    AND (FURG.END_DATE > SYSDATE
    OR FURG.END_DATE IS NULL)
    AND FFF.FUNCTION_NAME NOT IN
    SELECT FF.FUNCTION_NAME
    FROM FND_RESPONSIBILITY R, FND_USER_RESP_GROUPS RG
    , FND_RESP_FUNCTIONS RF, FND_FORM_FUNCTIONS FF, FND_RESPONSIBILITY_TL FRTL
    WHERE RG.RESPONSIBILITY_ID = R.RESPONSIBILITY_ID
    AND RF.RESPONSIBILITY_ID = R.RESPONSIBILITY_ID
    AND RF.RULE_TYPE = 'F'
    AND FF.FUNCTION_ID = RF.ACTION_ID
    AND FRTL.RESPONSIBILITY_ID = R.RESPONSIBILITY_ID
    AND FRTL.RESPONSIBILITY_ID = RG.RESPONSIBILITY_ID
    AND FRTL.LANGUAGE = 'US'
    help me please to exclude the menus.

    tried it and had the following error:
    if((tbl_menu_id.FIRST is NULL) or (tbl_menu_id.FIRST 1)) then
    ERROR at line 136:
    ORA-06550: line 136, column 54:
    PLS-00103: Encountered the symbol "1" when expecting one of the following:
    *. ( ) , * @ % & | = - + < / > at in is mod not range rem =>*
    *.. <an exponent (**)> <> or != or ~= >= <= <> and or like*
    between ||
    The symbol "," was substituted for "1" to continue.
    from another perspective, from applications front end, when I press ctrl +L on any responsibility menu, I get the list of the forms names.
    which database tables can I get that from?

  • Beginner needs help with css layout

    i'm new to using dw (cs3) and css, though i have some
    background in html and coding. i'm creating a page using the "one
    column elastic, centered, header and footer" layout and i have a
    banner header with a horizontal spry menu bar at the bottom of the
    header. the background color of the buttons on the menu bar is red,
    and there's a yellow 5px border on the top and bottom of the red
    menu bar, so it looks like there's red bar with yellow piping above
    and below it, and this bar is between the header and body section
    of the page. i've set these colors in the "ul.MenuBarHorizontal a"
    rule.
    now, the issue i have is that my menu bar does not extend
    across the entire column, so there's empty space to the right of my
    menu bar (between the end of the menu bar and the far right
    column). i'd like the look of the red and yellow menu bar to extend
    all the way across, but i can't figure out how to do this in css.
    do i:
    extend the menu bar all the way across the width of the page?
    i can't figure out how to do this.
    insert an image to make it appear as though the red and
    yellow bar keeps extending to the right? if so, how will that image
    remain elastic along with my page?
    or is there a better solution?
    i'm very new to css and i'm doing my best to figure out how
    everything fits together. the last web site i built was in 1997 and
    it was done in notepad. any help would be tremendous. i'm in
    kinshasa, in the democratic republic of congo, and truth be told
    there aren't a lot of dw gurus out here.
    thanks in advance...

    Can you post a link to your page, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "charliemooreiv" <[email protected]> wrote
    in message
    news:[email protected]...
    > i'm new to using dw (cs3) and css, though i have some
    background in html
    > and
    > coding. i'm creating a page using the "one column
    elastic, centered,
    > header
    > and footer" layout and i have a banner header with a
    horizontal spry menu
    > bar
    > at the bottom of the header. the background color of the
    buttons on the
    > menu
    > bar is red, and there's a yellow 5px border on the top
    and bottom of the
    > red
    > menu bar, so it looks like there's red bar with yellow
    piping above and
    > below
    > it, and this bar is between the header and body section
    of the page. i've
    > set
    > these colors in the "ul.MenuBarHorizontal a" rule.
    >
    > now, the issue i have is that my menu bar does not
    extend across the
    > entire
    > column, so there's empty space to the right of my menu
    bar (between the
    > end of
    > the menu bar and the far right column). i'd like the
    look of the red and
    > yellow menu bar to extend all the way across, but i
    can't figure out how
    > to do
    > this in css.
    >
    > do i:
    >
    > extend the menu bar all the way across the width of the
    page? i can't
    > figure
    > out how to do this.
    >
    > insert an image to make it appear as though the red and
    yellow bar keeps
    > extending to the right? if so, how will that image
    remain elastic along
    > with
    > my page?
    >
    > or is there a better solution?
    >
    > i'm very new to css and i'm doing my best to figure out
    how everything
    > fits
    > together. the last web site i built was in 1997 and it
    was done in
    > notepad.
    > any help would be tremendous. i'm in kinshasa, in the
    democratic republic
    > of
    > congo, and truth be told there aren't a lot of dw gurus
    out here.
    >
    > thanks in advance...
    >

  • Need Help & Urgent Response --Menus

    Hi,
    I am facing problem in manipulating menu (PL/SQL-code).
    Wanted to...
    1. I ve specific entities assigend specific users
    2. On the basis of specific login user replacing the menu
    3. Using GLOBAL variables transfering user id to calling forms
    Problem:
    I wana create a cursor to gather info abt specific user's entities assigend and dependign uopn these entities (if ...then... else) enabling/disabling menus BUT cursor is created in the menu SQL editor but unable to recognize cursor's fecthed records ....like
    Code for Mune Item:
    declare
    cursor c1 is select entities ....;
    c_rec c1%type;
    begin
    open c1;
    loop...
    fetch c1 into c_rec;
    if c_rec.entity = 1 then
    en/disable menu;
    else
    end if;
    ERROR: c_rec is not defined / unrecognized ....
    Plz help me in this regard and also tell me some other solutions to do this.
    waiting
    Thanking you in anticipation
    Regards

    yes at the start time all the menu items are enabled ....on the basis of info getting from cursor i wanted to enable/ disable the menu item????? Got my point???

  • Need help saving Workspace layout

    At Photoshop World, Julieanne Kost mentioned that she likes to have all of her panels to the left. I tried this at home and really like it like that, so I saved a new workspace.
    My problem is that when I open a new image, the image window floats behind my left-sided panels and it drives me crazy!! This is the problem ....
    I really want it to default to a location that I set for any new document that is created or image that is opened, but I can't figure out how to save that location and I've searched online and in the preferences. Can anyone help me make it default to this positon below??
    Thanks SO much!!
    Allison

    Yes, there is a way to do this.
    Start with a workspace that has the panels to the right.
    Important: do not have any files open.
    Also important: Open the panels you want showing by default, such as layers and swatches.
    Now, as shown in the screenshot, drag the panels as a group by placing your mouse pointer where the red box is, then drag it to the toolbox until you see a blue line. This means the panels will be docked instead of floating, and will not allow your open documents under it.
    Save the workspace, then open your files.
    Gene
    You should see this. "test" is what I called the workspace.

  • Need help with a Layout problem

    I'm writing a game japplet, and I'd like to have the following layout:
    1 JPanel that takes up the whole screen
    1 JPanel on top of the first panel in the lower left corner
    1 JPanel on top of the first panel in the lower right corner
    What layout manager would be best for this system, or can I get away with just using setLocation()'s

    For a game, using a layout manager could not be the good solution... for example, if you have to draw a game area of fixed size, it's incompatible with a layout management which could reduce or grow the area's size.
    Personnally I would use the null layout solution... harder to code but much more reliable in this case!
    Good luck for your game... ;)
    Regards.

  • Need help combining a Layout and Graphics

    Okay, I've been working on this for a long time now, and I'm getting close...but not quite.
    I want to have a JApplet where I can use Graphics methods, as well as JButton, etc. However, if I set my applet to use a certain type of Layout (setLayout), it will only display the JButton and none of the graphics that I drew in paintComponent(). If I don't define a Layout at all, the JButton covers the entire applet. If I take out the JButton and the Layout, then I do see the Graphics. So, it's like the Graphics are being hidden underneath the Layout, and I don't know how to get them to show through.
    Here's what I have...as you can see from the billion commented lines, I tried a lot of different things.
    import javax.swing.*;       // Imports JButton, JTextArea, JTextField
    import java.awt.*;          // Imports Canvas
    import java.awt.event.*;    // Imports ActionEvent, ActionListener
    public class HashTableApplet extends JApplet
      public void init()
        PaintStuff paint = new PaintStuff();
        Container contentPane = getContentPane();
        JButton startButton = new JButton("Start");
        //Determine the "look" of the Applet:
        contentPane.setLayout(null);
        contentPane.add(paint);
        // Add in the button:
        Insets insets = contentPane.getInsets();
        contentPane.add(startButton);
        startButton.setBounds(25 + insets.left, 5 + insets.top, 75, 20);
    class PaintStuff extends JPanel
      public PaintStuff()
        //setBackground(Color.lightGray);
      public void paintComponent(Graphics g)
        super.paintComponent(g);
        //setOpaque(false);
        g.setColor(Color.yellow);
        // drawLine(x1, y1, x2, y2)
        g.drawLine(50, 50, 100, 100);
        g.drawLine(0, 200, 700, 200);
        g.drawRect(200, 200, 200, 200);
    }

    /*    <applet code="GraphicApplet" width="400" height="300"></applet>
    *    use: >appletviewer GraphicApplet.java
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class GraphicApplet extends JApplet {
      GraphicPanel graphicPanel = new GraphicPanel();
      int colorCount = 0;
      public void init() {
        final Color[] colors = {
          Color.orange, Color.yellow, Color.pink
        final JButton button = new JButton("Change Background");
        button.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            Color color = colors[colorCount++ % colors.length];
            graphicPanel.setBackgroundColor(color);
        JPanel northPanel = new JPanel();
        northPanel.add(button);
        Container cp = getContentPane();
        // default layout for JPanel (== JApplet) is Flow Layout
        cp.setLayout(new BorderLayout());
        cp.add(northPanel, "North");
        cp.add(graphicPanel, "Center");   
       * Convenience method allows you to run this from the command line.
      public static void main(String[] args) {
        JFrame f = new JFrame("Grpahic Applet");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JApplet applet = new GraphicApplet();
        f.getContentPane().add(applet);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        applet.init();
        applet.start();
        f.setVisible(true);
    class GraphicPanel extends JPanel {
      Color bgColor;
      public GraphicPanel() {
        setBackground(Color.black);
        bgColor = Color.red;
        // add listeners here
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        int width = getSize().width;
        int height = getSize().height;
        int cx = width/2;
        int cy = height/2;
        int diameter = Math.min(width, height)*2/3;
        g2.setPaint(bgColor);
        g2.fill(new Rectangle2D.Double(width/8, height/8, width*3/4, height*3/4));
        g2.setPaint(Color.blue);
        g2.draw(new Rectangle2D.Double(cx - diameter/2, cy - diameter/2,
                                       diameter, diameter));
        g2.setPaint(Color.green);
        g2.draw(new Ellipse2D.Double(cx - diameter/2, cy - diameter/2,
                                     diameter, diameter));
      public void setBackgroundColor(Color color) {
        this.bgColor = color;
        repaint();
    }

  • Need help with ID CS3

    I need help/tutor with layout/design/construction for a small publication. Looking for someone who knows ID3 and Word. If you know Illustrator & PS, all the better. Email - [email protected] with hourly rate. Most everything can be done via email/phone but consideration will be given to someone in the central valley/Sacramento/Stockton or greater SF Bay area. Thanks!

    I need help/tutor with layout/design/construction for a small publication. Looking for someone who knows ID3 and Word. If you know Illustrator & PS, all the better. Email - [email protected] with hourly rate. Most everything can be done via email/phone but consideration will be given to someone in the central valley/Sacramento/Stockton or greater SF Bay area. Thanks!

  • Need Help in Customization of OTL Time Keeper Layout for Projects.

    Hi All,
    Need help in customization of OTL Time Keeper.
    Requirement:
    Required to change the Project Layout Template as Payroll Layout Template.
    In Payroll Layout Template the days consits of start and end time and total time per day.
    Similary need to reproduce the same content Layout as it is in Payroll.
    Can Anybody suggest the procedure to achive this task
    Thanks and Regards,
    Chaitanya.

    Hi,
    Can someone please Help me on this ...
    Regards,
    Tarun

  • Need help in multisim 11? I want to get the transient response of RL circuit....

    Need help in multisim 11?
    I want to get the transient response of RL circuit....i can get the increasing exponential graph in multisim 7 during simulation.....but i am getting a decreasing exponential curve(i.e,decay response) in multisim 11 when i do the same procedure as i did in multisim 7.....how can i get the initial or growth transient response for RL circuit in multisim 11 so that i can get increasing exponential curve....which satisfies time constant = L/R

    Hello,
    The process is the same for any circuit (in this case it is an RC circuit which you sent me). You can find the response on the voltage (which I think it's what you're looking for) at any point of the circuit, as well as any parameter really (R,V,I,L..etc).
    Please refer to the image attached (an analysis on the voltage at an inductor and the wires connected to it).
    The way to set it up (once you're in the transient analysis set up) is, select the Output tab, under Variables in circuit, you can select which parameters to take. V(1) and V(2) refer to the voltage in the circuit at Net 1/2 (or wire 1/2).
    This differs from the voltage change within the capacitor/inductor/resistor. If you would like to see the voltage change of an inductor/capacitor/resistor/etc, you can select under the More options box, the button Add device/model parameter, which will take you to a window to select the device type, its name (in the circuit) and the parameter which you wish to analyse. Once you click on Simulate, you can select Cursor >> Show Cursors, to view information for y and x axis (like rise time, decay time, voltage difference...etc)
    Hope this helps,
    Miguel V
    National Instruments
    Attachments:
    untitled.jpg ‏178 KB

Maybe you are looking for

  • Nik plugin problem - exports directly to folder - skips LR catalog :(

    hello everybody i have a very strange problem while attempting to edit a photo in Nik Color Efex Pro 4 in LR4 - edits are made and i click "save" to go back to LR the "stack" indication in the upper-left-hand corner increases by one but the edited ph

  • Template that worked in CS6 is not working in CC

    I moved to Dreamweaver CC from CS6. In CS6 I created a template that I used throughout the site.  In the past it has worked fine. I upgraded to CC. I made a change to the template and CC tells me I only have one file to update.  I have thousands. I c

  • Creating a ColorModel for 4 band images.

    The application I am writing involves the creation of images with over 4 bands. I'm using RasterFactory.createPixelInterleavedSampleModel(int,int,int,int) to create a SampleModel and then using PlanarImage.createColorModel(SampleModel) to create a Co

  • Websharing not allowing me to view my site at /~user/

    Before Leopard upgrade, this was working fine, i didn't do a clean install, just an upgrade to the current OS. Now, websharing is turned on, browsing to my computer ip, the apache splash comes up, saying it is properly installed, but when i got to my

  • Jsp : Cannot inherit from final class

    hi, i have big problem. when i call a class using xml(DOM,SAX,...) in my jsp page, i get an error message: org.apache.jasper.JasperException: Cannot inherit from final class i don't understand why? help me please!!!