Filling JButton with different texture?

Hi All,
This may be a silly question, but is there a way to change the filling of a jbutton besides changing the color or loading it with an image? What I'm trying to do is, have the filling-texture change when the button color changes. For example:
Button 1 : Color red, filling-texture type 1
Button 1 : Color green, filling-texture type 2
Button 1 : Color yellow, filling-texture type 3
...etc...
Thanks!

try this, it is simple but it can give you some ideas.
MyButton jbm = new MyButton(" My Button");
jbm.setBounds(10,10,100,36);
jbm.setBackground(Color.orange);
getContentPane().add(jbm);
MyButton jb1 = new MyButton(" My Button");
jb1.setBounds(151,10,100,36);
jb1.setBackground(Color.pink);
getContentPane().add(jb1);
public class MyButton extends JButton
public MyButton(String s)
     super(s);
     setMargin(new Insets(0,0,0,0));
public void paint(Graphics g)
     super.paint(g);
     if (getBackground() == Color.pink)
          g.setColor(Color.darkGray);
          g.drawRect(3,3,getWidth()-7,getHeight()-7);
          g.drawRect(5,5,getWidth()-11,getHeight()-11);
          g.drawRect(7,7,getWidth()-15,getHeight()-15);
     if (getBackground() == Color.orange)
          g.setColor(Color.darkGray);
          g.drawRect(3,3,getWidth()-7,getHeight()-7);
          g.drawRect(4,4,getWidth()-9,getHeight()-9);
          g.drawRect(5,5,getWidth()-11,getHeight()-11);
          g.drawRect(6,6,getWidth()-13,getHeight()-13);

Similar Messages

  • Custom JButton with different states, any ideas??

    Hey, hope you guys can help.
    What I want to do is to implement a custom JButton class with different states for the button. The button should have a "pressed" state, where the user has pressed it, and if the action triggered by this pressing gets approved, it should get selected. It will then get a different color and border.
    I will have several buttons of this type in one panel, and they can all have different states at any time.
    I do not want to use JToggleButton, as it is not the user that decides if it should be selected or not, but the logic "behind" (the dataflow).
    So I want like a combination of JButton and JToggleButton...
    How do I do this, any ideas, please?

    I am not to sure if this is the idea you have in mind but...
    This is something i have used before it is a tool bar. the button could be managed by another event it is an event listener at the moment.
    As well as update only a specified button rather than all?
    public class ToolBar extends JToolBar {
        public ToolBar(EventListener el) {
            this.setName("ToolBar");
            String[] imageFiles = { "Left.gif", "Relationgif", "Reload.gif", "TrafficRed.gif", "Home.gif", "Print.gif", "Help.gif" };
            String[] toolbarLabels = { "Entity", "Relationship", "Reload", "Stop", "Home", "Print", "Help" };
            Insets margins = new Insets(3, 3, 3, 3);
            for(int counter = 0; counter < toolbarLabels.length; counter++) {
                ToolBarButton button = new ToolBarButton(imageFiles[counter]);
                button.setToolTipText(toolbarLabels[counter]);
                button.setMargin(margins);
                button.setName(imageFiles[counter]);
                button.setVerticalTextPosition(BOTTOM);
                button.setHorizontalTextPosition(CENTER);
              //  button.setMnemonic(KeyStroke.VK_CAPS_LOCK);
                button.addActionListener(el);
                add(button);
        public void setTextLabels(boolean showLabels) {
            Component c;
            int i = 0;
            while((c = getComponentAtIndex(i++)) != null) {
                ToolBarButton button = (ToolBarButton)c;
                if (showLabels)
                    button.setText(button.getToolTipText());
                else
                    button.setText("");
    //each button on the tool bar is an object of this class
    public class ToolBarButton extends JButton {
        private static final Insets margins = new Insets(3, 3, 3, 3);
        //user selected to view tool bar as image only (default)
        public ToolBarButton(Icon icon) {
            super(icon);
            setMargin(margins);
        //user selected to view tool bar as text only
        public ToolBarButton(String iconName) {
            this(new ImageIcon(iconName));
        //user selected to view tool bar as image and text
        public ToolBarButton(String iconImage, String iconName) {
            this(new ImageIcon(iconImage));
            setText(iconName);
    }

  • Filling Text with a Texture?

    I want to take a piece of video (specifically the metal texture from the generator tab) and fill my text face with it.  What I've tried:
    Selecting "Face" in the 'text' section of the inspector for the text I want to fill
    Then I selected "Texture" from the "Fill With " drop down menu
    Then I clicked inside the "Source Media" icon,
    Next the monitor split and when I selected the section of video I wanted to use (in this case the metal texture I dragged from the generators) I clicked "apply clip"
    and then nothing happnes, and the "Source Media" thumbnail remains blank..
    I also tried this with other random video clips just in case it might be the generator, all to no avail...
    ...am I doing something wrong or is this another bug?

    Put the texture on top of the video. Put the text on top of the texture. To the text apply blend mode Stencil Alpha. Combine the text and the texture into a compound clip.

  • Filling aggregate with different level of aggregation.....

    WE have total 7 aggregates to be activated and filled, 4 belongs to first level ,and three in second level.By mistake we filled  one of the  aggregate at second level, now we want to fill the aggregate which are in the first level....... will there be any inconsistency or problems when aggregate at lower level is filled and activated before the higher level.

    Hi,
    All of them can be filled individually.Doing so, It does not make any effect on other. Generally we can see fast filling if we do all of them at a time ,because system does the Higher granular aggregates filling first and it use them to fill lower granular aggregates,But it does not mean that we facr inconsistency if we do any one in advance.
    With rgds,
    Anil Kumar sharma .P

  • I have a question about the calendar on the ipad2. I have multiple calendars in different colors. Some of the events are filled in with color. Others are just listed with a colored dot in front of the event. Any ideas why events ar showing up differently?

    I have an ipad2 and my question is about the calendar. I set up multiple calendars with different colors. Some of the events show up in filled color. Others only show with a colored dot in front of the event. I can't figure out why some show up one way and others show up differently? Any thoughts?

    On mine the ones that show on a coloured background are all-day events, the ones with dots and just timed events.

  • How to fill tabs with textures?

    Hi all,
    I wondering how to fill tabs with textures, just like in the "Personal Budget" template.
    I mean this:
    How could I replicate this nice effect? Please help!
    I already read the user manual but I won't be able to find a solution...

    One way is to open the template and select the table with the fill pattern.  Open the table inspector
    highlight the Image fill cell (in the "Cell Background" section).  Copy.
    Now open the application Preview in the Applications folder.  Select the menu item "File > New From Clipboard" to create a new document with the image you copied.  Now save the image as a pdf using the menu item "File > Save..."
    Save it with a name you can remember in a location of your choice.
    Now select a table in some other Numbers document and set the table background to the image you just saved by using the Table Inspctor:

  • How do I create a automatic second page with different layout settings?

    Hi there,
    I want to create a business letter template with a different second page. I already managed to create a different layout on page nr two, but
    whenever I write a letter with this template and I reach the end of page one, pages creates a thrid page in between my page nr one and nr two with a mixture of the layout of template page nr two and the footer of page nr one.
    I want pages to take my template page nr two (with different header and footer) as second page instead of creating one itself.
    If I don't need a second page - because my letter is to short - I should not have to delete a second page. It simply should not be there...
    Thanks for Help!
    G4's and 12" PB   Mac OS X (10.4.6)  

    Hello Stefan,
    you achieve this with a little trick. Create your letter and set the layout for the first and the second page by inserting a placeholder text. This placeholder text should fill the first page and the top of the second page, so both pages are build in one section. When the entire letter is layouted well, select the placeholder text and than save the letter as a template.
    Now every time you open this template, you only have to insert the main text (replace the placeholder text with real content), and the second page disappears until the main text overflows the borders of the first page. Than you will get the second page again with the layout you have created for it.
    I hope this will work for you like it works fine for me.

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • Ability to process several raw files with the same content but with different exposure into the single picture

    Can you add to the Lightroom an ability to process several raw files with the same content but with different exposure into the single picture?
    Base raw files can be given with exposure bracketing during shooting, for example.
    The goal - to get maximum details in darks and lights (if we use the "ligths recovery" or "fill lights" we lose the quality because raw file just have no all required information).
    The similar (but not the same, only the idea) thing - is High Dynamic Range Photography in Adobe Photoshop
    Thank you

    The plugin LR/Enfuse does this already. And of course Photomatix have a plugin available for Lightroom. This essentially amounts to pixel editing, which is beyond the range of Lightroom's metadata editing.

  • Case study: "Large?" labview programs flooded with different VIT's

    Case study: "Large?" labview programs flooded
    with different VIT's
    Type of application:
    Computer with loads of individual hardware connected or other software (either
    onsite (different buses) or offsite (Satelite/GSM/GPRS/radio etc.).
    Hardware
    description: little data "RPM" but communications to all devices are intact.
    More "RPM" when many VITs are involved.
    Size: 1000+
    VITS in memory (goal). Total software has been tested and simulated with 400.
    I'm posting
    this post after reading this thread (and actually I cant sleep and am bored as
    hell).
    Note: I do
    not use LVOOP (but sure post OOP examples, am starting to learn more and more
    by the day.)
    Things I
    will discuss are:
    Case 1: Memory usage using a plugin
    architecture
    CASE 2: memory usage using VITs (!)
    CASE 3: updating datastructures:
    CASE 4: shutdown of the whole system
    CASE 5: stability & heath monitoring
    CASE 6: Inifiles
    CASE 7: When the hardware is getting crappy
    Total
    application overview:
    We have a
    main application. This main application is mainly empty as hell, and only holds
    a plugin functionality (to register and administer plugins) and holds an
    architecture that holds the following items:
    Queue state
    machine for main application error handling
    Queue state
    machine for status messages
    Queue state
    machine for updating virtual variables
    Event state
    machine for GUI
    Some other
    stuff
    Other
    global functionality is:
    User
    logins, user configurations and unique access levels
    Different
    nice tools like the good old BootP and other juicy stuff
    Supervision
    of variables (like the NI tag engine, but here we have our own datastructures)
    Generation
    of virtual variables (so that the user can configure easy mathematical
    functions and combining existing tags)
    Licensing
    of plugins (hell we free-lance programmers need some money to don't we?)
    Handles
    all communication between plugins themselves, or directly to a plugin or vice
    versus.
    And now we don't
    talk about that (or marketing) the main application .
    Message Edited by Corny on 01-20-2010 08:52 AM

    CASE 3: updating datastructures:
     As we do NOT use clusters here (that would
    just be consuming) we only use an 1D array of data that needs to be updated in
    different functional globals. If the the number of VITS exceeds so that the
    updating of this datastructures becomes the bottleneck, this would cause
    delays. And since in this example we use 250 serial interfaces (lol) we do not
    want to disrupt that by any delays. When this happends, does anyone know a good
    solution to transfer data?
    A thought:
    perhaps sending it down to the plugin and let the plugin handle it, this should
    save some time, but then again if more VITs are added again this would become a
    bottleneck and the queue would fill up after a while unable to process it fast
    enough. Any opinions?
    CASE 4: shutdown of the whole system
    Lets say we
    want to close it all down, but the VITs need perhaps to do some shutdown
    procedure towards the hardware, that can be heavy.
    If we ask
    them to shutdown all together we can use an natofier or userevent to do this
    job. Well, what happends next is that the CPU will jump to the roof, and well
    that can only cause dataloss and trouble. The solution here was to let the
    plugin shut them all down one by one, when one has been shutdown, begin at the
    next. Pro; CPU will not jump to the moon. Con's: shutdown is going to take a
    while. Be ready with a cup of coffee.
    Also we
    want the main application not to exit before we exit. The solution above solved
    this as the plugin knows when all have been shut down, and can then shut itself
    down. When all plugins are shutdown - the application ends.
    Another
    solution is to use rendovous (arg cant spell it) and only shut the system down
    when all rendezvous have met.
    CASE 5: stability & heath monitoring
    This IS
    using a lot of memory. How to get it down. And has anyone experienced any
    difficulties with labview using A LOT of memory? I want to know if something
    gets corrupt. The VITs send out error information in case, but what if
    something weird happens, how can I surveillance all the VIT's in memory to know
    one is malfunctioning in an effective way/code (as backup
    solution  so the application knows
    something is wrong?
    CASE 6: Inifiles
    Well, we
    all like them. Even if XML is perhaps more fahionally. Now Ive runned some
    tests on large inifiles. And the labview Inifile functions use ages to parsing
    all this information. Perhaps an own file structure in binary format or
    something would be better? (and rather create an configuration program)?
    CASE 7: When the hardware is getting crappy:
    Now what if
    the system is hitting the limit and gradually exceeds the hardware req. of the
    software. What to do then (thinking mostly of memory usage)? Needing to install
    it on more servers or something and splitting configurations? Is that the best
    way to solve this? Any opinions?
    Wow.  Time for a coffee cup. Impressive if someone
    actually read all of this. My goal is to reach the 1000 VIT mark.. someday.. so
    any opinions, and just ask if something unclear or other stuff, Im open for all
    stuff, since I see the software will hit a memory barrier someday if I want to
    reach that 1000 mark hehe

  • Different number of parses with different providers

    I tried to figure out
    how could I control number of parsing from MS ADO app.
    To my surprise it seems that there is no general way to do it.
    The behaviour is heavily dependent on underlying OLEDB provider,
    and for some of the providers (Oracle's own including)
    I did not manage to reduce number of parses.
    I wrote a simple vbs script that:
    1. Opens the connection for the given provider
    2. Executes ALTER SESSION SET session_cached_cursors=100
    3. Creates ADO command with 'SELECT ... FROM USER_TABLES..'
         and with one parameter
    4. Opens ADO recordset with this command, reads from and closes it
    Here is the script:
    'TestADOCommandParsing.vbs
    Dim stConnectString
    Dim stUID
    Dim stPWD
    Dim stTestTag
    Dim stServer
    Dim cn
    Dim cmdALTER_SESSION
    Dim cmdUserTables
    Dim rsUserTables
    Dim param
    Dim nRows
    Dim I
    Const c_stProvider = "Ora" '"MS" '"ODBC" '
    Const adVarChar = 200
    Const adParamInput = 1
    Const adUseServer = 2
    Const adOpenStatic = 3
    Const adLockReadOnly = 1
    stUID = "..."
    stPWD = "..."
    stServer = "..."
    stTestTag = "TestParsesADO_" & c_stProvider & "_1"
    If c_stProvider = "MS" Then
    stConnectString = "Provider=MSDAORA;" & _
    "User ID=" & stUID & ";Password=" & stPWD & ";Data Source=" & stServer & ";"
    ElseIf c_stProvider = "Ora" Then
    'Oracle provider.
    'The PLSQLRSet attribute [=1] specifies whether OraOLEDB needs to parse the PL/SQL
    'stored procedures to determine if a PL/SQL stored procedure returns a rowset:
    stConnectString = "Provider=OraOLEDB.Oracle;PLSQLRSet=0;" & _
    "User ID=" & stUID & ";Password=" & stPWD & ";Data Source=" & stServer & ";"
    ElseIf c_stProvider = "ODBC" Then
    stConnectString = "Provider=MSDASQL.1;Extended Properties=" & _
    """DRIVER={Microsoft ODBC for Oracle};" & _
    "UID=" & stUID & ";PWD=" & stPWD & ";SERVER=" & stServer & ";"""
    End If
    wscript.echo "Provider = " & c_stProvider
    wscript.echo "stConnectString = " & stConnectString
         Set cn = CreateObject("ADODB.connection")
         cn.Open stConnectString
         Set cmdALTER_SESSION = CreateObject("ADODB.Command")
    With cmdALTER_SESSION
    .CommandType = 1 'adCmdText
    .Prepared = False
    .CommandText = _
    "BEGIN EXECUTE IMMEDIATE 'ALTER SESSION SET session_cached_cursors=100'; END;"
    Set .ActiveConnection = cn
    End With
    cmdALTER_SESSION.Execute
         Set cmdALTER_SESSION = Nothing
         Set cmdUserTables = CreateObject("ADODB.Command")
    With cmdUserTables
    Set .ActiveConnection = cn
    .CommandType = 1 'adCmdText
    'The Recordset parameters
    'CursorLocation, CursorType, LockType
    'seem to be irrelevant for reparsing of Oracle cursor.
    'Oracle session_cached_cursors parameter also has no effect.
    'Command.Prepared setting affects it, but only for ODBC-based provider:
    'False: N parses, N executions
    'True: 1 parse, N executions
    .Prepared = True
    .CommandText = _
    "SELECT TABLE_NAME FROM USER_TABLES " & _
    stTestTag & " " & _
    "WHERE TABLE_NAME LIKE ? " & _
    "ORDER BY TABLE_NAME"
    Set param = .CreateParameter("TABLE_NAME_Pattern", adVarChar, adParamInput, 30, "%")
    .Parameters.Append param
    End With
         Set rsUserTables = CreateObject("ADODB.Recordset")
    For I = 1 To 10
    cmdUserTables.Parameters("TABLE_NAME_Pattern").Value = "QU_%"
    With rsUserTables
    'The Recordset parameters:
    'CursorLocation, CursorType, LockType
    'seem to be irrelevant for reparsing of Oracle cursor:
    '.CacheSize = 100 'Irrelevant
    '.CursorLocation = adUseServer 'adUseClient 'Irrelevant
    '.CursorType = adOpenStatic 'adOpenForwardOnly 'Irrelevant
    '.LockType = adLockReadOnly 'Irrelevant
    .Open cmdUserTables
    While Not .EOF
    nRows = nRows + 1
    .MoveNext
    Wend
    wscript.echo CStr(I) & ". nRows = " & CStr(nRows)
    .Close
    End With
    Next
    Before running tests:
    VARIABLE SQLTextPattern VARCHAR2(100);
    COLUMN HASH_VALUE FORMAT 9999999999
    COLUMN SQL_TEXT FORMAT A40
    COLUMN "Invalids" FORMAT 9999999
    COLUMN "Parses" FORMAT 9999999
    COLUMN "Execs" FORMAT 9999999
    COLUMN "Parses/Execs" FORMAT 9999.99
    COLUMN CH# FORMAT 999
    COLUMN ROWS# FORMAT 9999
    I ran TestADOCommandParsing1.vbs script 3 times with
    different providers and table aliases to distinguish
    SQL from different tests:
    host cscript.exe TestADOCommandParsing1.vbs
    After each run I changed table alias var:
    EXEC :SQLTextPattern:='%TestParsesADO_Ora_1%';
    or
    EXEC :SQLTextPattern:='%TestParsesADO_ODBC_1%';
    or
    EXEC :SQLTextPattern:='%TestParsesADO_MS_1%';
    and queried V$SQL, V$SYSSTAT.
    Before running the tests:
    SYSTEM@ADAS> SELECT NAME, VALUE
    2 FROM V$SYSSTAT
    3 WHERE NAME = 'session cursor cache hits'
    4 ;
    NAME VALUE
    session cursor cache hits 91051
    Test with Oracle OLEDB provider:
    SELECT
              SUBSTR(SQL_TEXT,1,200) SQL_TEXT
              ,PARSE_CALLS PARSES
              ,EXECUTIONS EXECS
              ,CHILD_NUMBER CH#
              ,FIRST_LOAD_TIME
              ,ROWS_PROCESSED ROWS#
         FROM V$SQL
         WHERE SQL_TEXT NOT LIKE '%SQL_TEXT%'
              AND SQL_TEXT NOT LIKE '%SQLTextPattern%'
              AND SQL_TEXT LIKE :SQLTextPattern
         ORDER BY CH#
    SQL_TEXT PARSES EXECS CH# ROWS#
    SELECT TABLE_NAME FROM USER_TABLES TestP 21 0 0 0
    arsesADO_Ora_1 WHERE TABLE_NAME LIKE :1
    ORDER BY TABLE_NAME
    SELECT TABLE_NAME FROM USER_TABLES TestP 0 10 1 230
    arsesADO_Ora_1 WHERE TABLE_NAME LIKE :1
    ORDER BY TABLE_NAME
    SELECT NAME, VALUE FROM V$SYSSTAT...
    NAME VALUE
    session cursor cache hits 91062
    Test with ODBC OLEDB provider:
    SELECT ... FROM V$SQL ...
    SQL_TEXT PARSES EXECS CH# ROWS#
    SELECT TABLE_NAME FROM USER_TABLES TestP 1 0 0 0
    arsesADO_ODBC_1 WHERE TABLE_NAME LIKE :V
    001 ORDER BY TABLE_NAME
    SELECT TABLE_NAME FROM USER_TABLES TestP 0 10 1 230
    arsesADO_ODBC_1 WHERE TABLE_NAME LIKE :V
    001 ORDER BY TABLE_NAME
    SELECT NAME, VALUE FROM V$SYSSTAT...
    NAME VALUE
    session cursor cache hits 91062
    Test MS OLEDB provider for Oracle:
    SELECT ... FROM V$SQL ...
    SQL_TEXT PARSES EXECS CH# ROWS#
    SELECT TABLE_NAME FROM USER_TABLES TestP 11 0 0 0
    arsesADO_MS_1 WHERE TABLE_NAME LIKE :V00
    001 ORDER BY TABLE_NAME
    SELECT TABLE_NAME FROM USER_TABLES TestP 0 10 1 230
    arsesADO_MS_1 WHERE TABLE_NAME LIKE :V00
    001 ORDER BY TABLE_NAME
    SELECT NAME, VALUE FROM V$SYSSTAT...
    NAME VALUE
    session cursor cache hits 91062
    As you see the number of parses (both soft and hard) differ from
    provider to provider.
    Provider Hard parses Soft parses Executions
    ODBC 1 0 10     
    MS for Oracle 11 0 10     
    Oracle 11 10 10     
    It looks like there is no way to control this 'bad' behaviour of
    OLEDB providers, at least from ADO level. I looked through the docs on
    Oracle provider for 8.1.6, but found nothing.
    There is a temptation to drop all this stuff in favour of SQL
    incapsulated in PL/SQL procedures...
    Any comments?

    D.Bender wrote:
    Hello,
    What's very confusing is that it doesn't always return the same number of readings. Sometimes it is 5, then 7 and afterwards 6 without changing anything. Since it is the first program for the Keithleys at work nobody can help me. I already tried highlighting execution and retain wire values. This way I saw that the VISA write command should give the correct command but the VISA read does not return the right number of readings. In addition to that I don't get any readings on the second iteration, so I can only see some on the first. The Keithley also does not show any new measurements (at least it does not show any numbers, only the typical "----").
    I can't view your file but I have experience with the Keithley 2400 so here is my opinion.  
    This is a common problem for new users working with buffers.  The most likely cause is that you are reading the buffer BEFORE it is full.  If you initiate the second measurement immediately, you will likely see a Keithley error caused by trying to set the buffer values while a measurement is in progress.  The keithley will immediately return the buffer contents when asked to.  You, as the programmer, must set up your LabVIEW code to wait for the buffer to fill, then read the values.  While a fixed delay before reading could work, here is a better solution.
    I posted my code for a I-V sweep (set voltage, measure current over a linear range) here http://forums.ni.com/t5/LabVIEW/Error-code-110-in-​keithley-2400/m-p/2680579#M797618.  (sorry I don't have access to the files right now to upload them here.  The idea is first set the registers to watch for the buffer to become full.  When full, the SRQ bit will be set to 1.  After starting the measurement, i probe the SRQ value in a while loop.  Once it's set to 1, read the buffer and reset registers.  This method is outlined in the Keithley 24xx SMU manual (I can't remember which page).

  • Adding new raid with different capacity drives on opposite side

    hi,
    I have an Xserve raid G4 with two sides of 7 bays. Currently one side is filled up with 7 250 gb Apple drives making a 1.37TB raid 5 and the other side is all empty. I just purchased 7 Apple 500gb drives and was wondering if I can combine the 2 sides into one raid 5 or because of the different capacity drives, must I have 2 raid 5s? I am thinking the latter.
    (I have done a search for an answer to this question and couldn't find a similar question. So, let me apologize if this is redundant info here.)
    Thanks

    The two sides are completely independent, so regardless of the size of the drives you cannot combine the drives on the left side in the same hardware-based RAID array with drives on the right hand side.
    It is, however, perfectly valid to have an array of 250GB drives on the left, with a separate array of 500GB drives on the right.
    That said, once you have two (or more) arrays, you can combine them into a single volume on the desktop using software RAID to concatenate the multiple volumes.
    If you decide to install the 500GB drives on the same side to incorporate them in the existing array then they will be treated as 250GB drives and the additional capacity will be lost.

  • Call a service twice with different values

    Hi,
    I have two DropDownBoxes I want to fill with the service Helpvalues.GetList with different values. So I call the service in the init method. But then the second call overwrites the first call.
    I thought about adding my own value attributes in my view but I get an error when I assign a ComplexType to the attributes.
    Thank you
    Julia

    Hi Julia,
    I think your DropDownboxes referring to same context.That is why your second call over writes the first one.
    use 2 local context nodes ,fill them seperately from your service calls.

  • How to fill areas with Fireworks CS4?

    How can I fill areas created with a pen tablet in more than
    one layer with Fireworks CS4?
    I need to fill areas created with vector path tool divided in
    more layers like a raster image but without converting strokes to a
    raster image.
    For example hair of a man...
    Do you know a trick or a tecnique?

    arcadiaclub.com wrote:
    > Ok this is an example... I need a trick or tecnique to
    fast (because I am
    > creating a long animation) fill areas with strokes
    placed in different layers...
    >
    >
    http://www.arcadiaclub.com/img/zup/scena_1.png
    >
    > I need to fill all hairs (front and back) in one time,
    clothes in one time and
    > so on...
    >
    Is there a reason each path is it's own object? Do they have
    to remain
    this way?
    If they don't, you can select the paths that make up the
    different areas
    and try using Modify > Alter Path > Join or Modify
    > Alter Path >
    Union. You will probably need to remove some anchor points if
    you choose
    one of these options.
    Are you aware of the Vector path tool which let's you draw a
    path
    freehand? That might be a better option than the Pen tool.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    .:Author:.
    Lynda.com -
    http://movielibrary.lynda.com/authors/author/?aid=188
    Peachpit Press -
    http://www.peachpit.com/authors/bio.aspx?a=d98ed798-5ef0-45a8-a70d-4b35fa14c9a4
    Layers Magazine -
    http://www.layersmagazine.com/author/jim-babbage

  • The E-filling interface with a third party

    This is the E-filling  interface with a third party and we dont require  through FTP server ,for  this interface it includes PI content import onto integration repository.
    May I know how to develop these kind of interfaces..

    E-Filing is contry specific, and the content provided by SAP, may be different for each country and in some cases for each year.
    as an example, for E-Filing GB you can see http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13616,
    regards,
    BJagdishwar.

Maybe you are looking for