Html text in label is moving when used as a renderer in a table cell

Hi everybody,
Because it is impossible to use gradient background for html, I created a custom TableCellRenderer that uses a JLabel (for the html text) inside a JPanel with a gradient background. (I use jdk1.5.0_06)
However, in the code that I'm posting, something strange happens. The text is moving up and down as I move with the arrow button along the first row, from left to right and backwards, crossing the entire row.
You can see for yourself. If someone can explain this behavior, please help!
public class MyFrame extends javax.swing.JFrame {
    public static void main(String args[]) {
           new MyFrame().setVisible(true);
    public MyFrame() {
         setTitle("Use LEFT & RIGHT buttons to test");
        javax.swing.JTable table = new javax.swing.JTable();
        table.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] { {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""} },
            new String []   { "Title 1", "Title 2", "Title 3" }
            public Class getColumnClass(int columnIndex) {
                return String.class;
        table.setRowHeight(30);
        table.setRowHeight(0,100);
        table.setRowSelectionInterval(0,0);
        table.setColumnSelectionInterval(0,0);
        table.setValueAt("This text MOVES up-down as you move across THIS ROW!!!",0,0);
        table.setValueAt("This text MOVES up-down as you move across THIS ROW!!!",0,1);
        table.setValueAt("This text DOES NOT MOVE as you move across THIS ROW!!!",0,2);
        table.setDefaultRenderer(String.class,new StringRenderer());
        getContentPane().add(table, java.awt.BorderLayout.CENTER);
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBounds(200,200,500,300);
    class StringRenderer extends GradientPanel implements javax.swing.table.TableCellRenderer {
        public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
               label.setText("<html><p align=center>"+String.valueOf(value)+"</p></html>");
            setColors(new java.awt.Color(255,255,255),isSelected?new java.awt.Color(255,100,100):new java.awt.Color(255,200,200));
            label.setBorder(hasFocus?new javax.swing.border.LineBorder(java.awt.Color.yellow,1):null);
            return this;
    class GradientPanel extends javax.swing.JPanel {
        private java.awt.Color c1,c2;
        protected javax.swing.JLabel label;
        public GradientPanel() {
            label = new javax.swing.JLabel();
            setLayout(new java.awt.GridBagLayout());
            java.awt.GridBagConstraints gbc = new java.awt.GridBagConstraints();
            gbc.fill = java.awt.GridBagConstraints.BOTH;
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            gbc.insets = new java.awt.Insets(5,5,5,5);
            add(label, gbc);
        public void setColors(java.awt.Color c1, java.awt.Color c2) {
            this.c1 = c1;
            this.c2 = c2;
            this.repaint();
        public void paintComponent(java.awt.Graphics g) {
            if ( c1 != null && c2 != null ) {
                java.awt.Graphics2D g2d = (java.awt.Graphics2D)g;
                g2d.setPaint(new java.awt.GradientPaint(0,0,c2,0,this.getHeight(),c1,false));
                g2d.fillRect(0,0,this.getWidth(),this.getHeight());
}

If someone can explain this behavior, please help!Can't explaing the behavour, but it seems to work fine when you use a JeditorPane or JTextPane which are specifically designed to display HTML.

Similar Messages

  • Question about the CSS behavior when using layer 3 sticky and sticky table

    Hi everyone,
    I have a question about the CSS behavior when using layer 3 sticky and sticky table is full.
    If I configure layer 3 sticky and specify the inactivity timeout as below, how does the CSS
    handle subsequent needed sticky requests ?
    advanced-balance sticky-srcip
    sticky-inact-timeout 30
    CSS document says that
    Note:
    If you use the sticky-inact-timeout command to specify the inactivity timeout
    period on a sticky connection, when the sticky table becomes full and none of
    the entries have expired from the sticky table, the CSS rejects subsequent
    needed sticky requests.
    My question is what is the next reaction by doing the CSS if the CSS is in the
    following condition:
    when the sticky table becomes full and none of the entries have expired from
    the sticky table, the CSS rejects subsequent needed sticky requests
    Does CSS just rejects/drops subsequent needed sticky requests ?
    or
    Does CSS does not stick subsequence requests to particular service but CSS forward
    subsequence requests with round-robin basis ? which means if the sticky table is full,
    the CSS just works round-robin load balancing fashion for subsequence requests ?
    Your information would be appreciated.
    Best regards,

    Hello,
    There is a good document explaining this on Cisco web site
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080094b4b.shtml
    It depends if the sticky-inact-timeout is used or not. If not, it's FIFO (the oldest entry in the sticky table is removed). If yes, the CSS will reject the next sticky request.
    Rgds,
    Gaetan
    Rgds
    Gaetan

  • Some Text Messages do not display when using large font on iphone

    When using increased font size (accessability function) on iphone some text messages will not display. The iphone just seems to lock up. If normal font size is used text massage displays with out any issue. When font size is increased, text message will not display again.

    Hi Peter
    Actually, Captivate does have an essentially unlimited number
    of undo levels. But that number may appear to be different. The
    number of levels starts when you begin editing the project. If you
    close and re-open a project, that starts the undo process over.
    I've tested and I gave up after about 280 or so undos.
    Where Captivate doesn't allow an undo, it normally warns you
    with a rather catastrophic looking dialog.
    Cheers... Rick

  • Label of attribute when used as View Criteria item with Bind Variable

    I've a VO attribute used in a named search with this requirement:
    The attribute provides has an optional View Criteria item that has a bind variable operand. The bind variable is in the WHERE clause. The attribute has an LOV. The choice list for the specified View Criteria item should display the label "Effective Release". However, in all other contexts, including the search results table and the dropdowns the user can optionally add in an advanced search, the label displayed for the attribute must say "Release".
    In other words, the default label for the attribute should be "Release" in all but one context - which is that when the dropdown list for the viewCriteria item using the bind variable is displayed, the label should say "Effective Release".
    Note that if the user moves to Advanced Search and selects adds the attribute as a search criteria, this latter usage should be labeled as "Release". (in this case, in other words, the dropdown that displays by default and has the bind variable operand is labelled "Effective Release", the one the user added in advance search is labelled "Release")
    here is the View Criteria item source xml:
          <ViewCriteriaItem
            Name="ReleaseId1"
            ViewAttribute="ReleaseId1"
            Operator="="
            Conjunction="AND"
            Value=":v_ReleaseId"
            GenerateIsNullClauseForBindVars="false"
            ValidateBindVars="true"
            IsBindVarValue="true"
            Required="Required"/>I've experimented by putting "Effective Release" as the label for the bind variable as below. However, ADF does not use that value to display, it defers to the attribute value:
    <Variable
        Name="v_ReleaseId"
        Kind="viewcriteria"
        Type="oracle.jbo.domain.Number">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="EFFECTIVE_RELEASE_LOV"/>
          </SchemaBasedProperties>
        </Properties>
      </Variable>The reason for the requirement, if it matters, is that the View Criteria item with the bind variable ("Effective Release" queries a range of values using the analytic function rank(); the bind variable is in the WHERE clause. Otherwise, the dropdown that can be added in advanced search ("Release") looks for exact matches on the attribute value. So since the search functionality is different, the label should be different.
    Am using 11g.
    Thanks for your help.

    Hi
    I have found that when using validation type Key Exists and the VO is in the local application, then the bind variable is available in the Create Validation wizard. When I try and create a validator on a VO that is core to all my applications, then I put that VO into an ADF library, the bind variable parameter is not available for mapping to my entity object attribute, even though I can select the VO to create a view accessor from the ADF library.
    Possible bug?

  • Variable text is blank in emails when using Scheduled Task to email event log notifications

    I am trying to use powershell to email notification when a user account gets locked.  I am running the script from a server 2008 domain controller.
    I have tried multiple scripts and I have the same issue every time.  The script works fine when I run it directly from the powershell command line window.
    However whenever I try running the exact same scripts from an event-triggered scheduled task, the script runs, however any content that generated from a variable is not added to the email.  It is just left blank and ignored.
    I have tried adding lots of permissions including domain administrator group membership to the account  runs the task from and it doesn't include all the expected text unless I run it from the built-in domain administrator account.
    The task runs and the email is sent, but the email is missing all the content generated by variables.
    How can this be fixed?
    Here is an example script.
    $AccountLockOutEvent = Get-EventLog -LogName "Security" -InstanceID 4740 -Newest 1
    $LockedAccount = $($AccountLockOutEvent.ReplacementStrings[0])
    $AccountLockOutEventTime = $AccountLockOutEvent.TimeGenerated
    $AccountLockOutEventMessage = $AccountLockOutEvent.Message
    $messageParameters = @{ 
    Subject = "Account Locked Out: $LockedAccount" 
    Body = "Account $LockedAccount was locked out on $AccountLockOutEventTime.`n`nEvent Details:`n`n$AccountLockOutEventMessage"
    From = "[email protected]
    To = "[email protected]
    SmtpServer = "exch2010.domain.local" 
    Send-MailMessage @messageParameters
    =================================================
    Here is an example of task settings.
    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Date>2015-03-25T21:40:28.8095226</Date>
        <Author>DOMAIN\administrator</Author>
      </RegistrationInfo>
      <Triggers>
        <EventTrigger>
          <Enabled>true</Enabled>
          <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=4740]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
        </EventTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>DOMAIN\WilliamsD</UserId>
          <LogonType>Password</LogonType>
          <RunLevel>LeastPrivilege</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>true</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>powershell.exe</Command>
          <Arguments>-nologo -File "C:\powershell\l2.ps1"</Arguments>
        </Exec>
      </Actions>
    </Task>

    By variable text I mean everything that it generates by using a variable such as the user's name ($LockedAccount)
    and everything else such as $AccountLockOutEventTime and everything else that is generated from
    a variable.
    Nothing like that appears in the email only hard coded text.
    I am not running it remotely.  I am logged directly onto the domain controller and I tried giving
    the account that is used to run the task more and more permissions including domain administrator group membership with the same result.
    When I run the exact same script on the same domain controller locally via the powershell CLI all of the info appears.
    This is the info when the email is generated by running the script directly from the powershell CLI:
    ================================================
    ================================================
    Account BondJ was locked out on 03/26/2015 20:42:18.
    Event Details:
    A user account was locked out.
    Subject:
                    Security ID:                         S-1-5-18
                    Account Name:                 DC1$
                    Account Domain:                            
    DOMAIN
                    Logon ID:                            
    0x3e7
    Account That Was Locked Out:
                    Security ID:                         S-1-5-21-3440879815-2193117124-1719501250-1154
                    Account Name:                 BondJ
    Additional Information:
                    Caller Computer Name:                DC1
    ===================================================
    ====================================================
    Below is the contents of the email when the same script runs via scheduled task trigger using any account I try other than the built-in domain Administrator account.
    =======================================================
    ======================================================
    Account  was locked out on .
    Event Details:
    ===================================================
    Just mostly blank email body with the info above.  All the important information text is missing from the email.

  • Screen moving when using Execute query (F8)

    Hi i have a screen oracle form when i used the key F8 ( execute query) then the screen moved down a half. Could you please help me how to fix it.

    Try Using this in WHEN_NEW_FORM_INSTANCE
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);

  • Gradient moving when using pathfinder

    I have a shape with a gradient fill. When I edit the shape (by moving points or using the pathfinder to change the shape) the gradient moves. How do I stop this from happening?
    Desired Result: Edit the shape without the gradient resizing or changing position.

    Thanks for the feedback.
    That is a solution to reset the position of the gradient, but the gradient size also changes - this makes it very difficult and time-consuming for me to accurately edit multiple objects. It basically means that I have to redo all their gradients every time I edit their shapes.

  • Why does text/edit leave line spaces when using Oracle?

    This question is just not limited to Macbook Pro's I'm sure, but to Text/Edit as a whole. I find Apple's text/edit to very unusable cross-platform. It leaves line spaces when you copy and past code from it to an Oracle environment causing the code to execute incorrectly leaving errors (I deactivated all extra features and chose 'Plain Text'). Also, when you open a text/edit document in Windows the formatting that was used is lost (It shoud keep the formatting without the line spaces like Windows Notepad). For instance, it displays the code on 3 lines (depeneding how much code you have). This is pretty moronic for something that should be simple and usable without much effort.
    For people that use both platforms for web design and development, this text/edit is pretty unproductive. I had to search and find one that works, which I shouldn't have to do for something like this. I mean it's just a text/editor. Make it useful for what it is, instead trying to be different on this one. Save that for the other great applicatoins that Apple offers.

    Ok so in this example, I add a comma to the first paragraph (left window, circled in red). There is no change to the text flow in this paragraph... but as soon as I type the comma, the paragraph below it reflows, for no apparent reason.
    I've tried opening the file in CS5.5, and the same thing happens. (And it's happening throughout the entire 300 page book)
    - in this example, if I delete the comma from the first paragraph, the second paragraph remains changed - ie it doesn't go back to how it was.
    Why did Indesign suddenly change the justification setting in the 2nd paragraph?
    Thanks in advance for any suggestions!

  • Text Click box not working when using back button on playbar

    I have an interstesting situation.
    I have a slide that has 2 text clickboxes (Slide B)
    Each text click box has an advanced action associated that controls what is displayed on the next slide (Slide C) . The click boxes and the advanced actions work just fine except for the following situation:
    The learner is on Slide C and uses the 'back button' on the playbar to return to the slide where the two text click boxes are (Slide B), then the click boxes don't seem to work.
    However if the learner goes back one additional slide, the slide before slide B (let's call that one slide A) and the continues from Slide A to Slide B, then the click boxes on Slide B work again.
    Can't figure out why that is?
    has anyone come across this issue before?

    Not for native Captivate interactive objects that suffer with this limitation.  There are interactive widgets such as the Infosemantics Event Handler that have preference options to Reset Success/Fail Criteria After Action.
    You could download a trial version and give that a go:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    You can attach this widget to any kind of screen object to make that object interactive.

  • Why is the rotate point moving when using Transform Again on a triangle?

    I am trying to create a pattern that I have created in previous itterations of Illustrator. In CC when I create a triangle (either via Star, Poly, or Pen tool) and then try to rotate it via Transform Each > Transform again, the rotation point moves according to what the bounding box would be if I reset it, rather than staying in one (original) spot relative to the actual bounding box and triangle. I cannot find any settings that would be affecting the rotate point in this way. I am pretty confident that I am using the same procedure now that I did in older versions of Illustrator. Perhaps I am using the wrong procedure.
    Naturally, if you are rotating something around its center you should expect that it would end up create a circular pattern. It is more of a square with concave sides. The red is a perfect circle that I grouped to the triangle to demonstrate the rotate points movement. It is located in the exact center according to the align tools.

    With the rotate tool, option click to set you point of rotation.
    You also may want to look into the transform effect, theres is a box with 9 points for your anchor points you can try. You can also add an object filled with none, group this with your object, and transform the group, to get offset results with the transform effect.

  • CS5 Text still gets cut off when using filters

    In Flash CS4, I encountered a strange bug where text would get cut off if there were any filters applied to the text box. I was so excited for CS5, because I had heard that bug was fixed. Now I see that it is not.
    I'm using Classic Text in an Actionscript 2.0 file. Here's a screenshot to demonstrate what I mean. The top line is text with no filters applied. The middle line is text inside a movie clip, with filters applied to the movie clip. The bottom line is text with a drop shadow filter applied directly to the text box. Why does it cut off the end of the text???
    Has anyone else experienced this?

    Hi,
    You can set the Cangrow property of the textbox to true which allows to grow your textbox and is default for any text box unless you have changed it.
    Please mark this post as Answered if this post helps to solve your query.

  • Fireworks web designs when using slices not rendering properly in IE

    When I create web pages in Fireworks CS6 and use slice tool then export the html, IE 8 and 9 renders borders and misaligned pixels. But when I view the html in Chrome, Safari or Firefox the html pages are rendered as I want them to render. Am i doing something wrong and how can I get html pages to render properly in IE.
    thank you for any help!

    States are used for animations or creating things like buttons from scratch. Use pages for designing the pages for your site.
    In your place I would export only the images from Fireworks, and then build the pages in Dreamweaver with those images. Fireworks HTML is OK for creating prototypes, but, as you can see, the HTML it creates is often not stable enough for web pages. If you want to use HTML from FW, it's not the spacers that cause the problems. The problems are usually generated by the way the page is sliced. To create stable tables, the sliced columns and rows need to line up next to and under each other, like a checkerboard. If the slices are staggered in brick fashion, the table can break apart. That's what you are seeing in IE.

  • When using dmstool cannot view ohs_Server metric table in Oracle 10g

    Hi,
    My application runs on Oracle 10g App server,
    when i tried this command dmstool -table -list
    The metric table ohs_server is not getting listed...
    I am sure that Oracle HTTP server is running, i confirmed this by using the command opmnctl status : which shows HTTP Server - alive
    also using dmstool -t opmn_process which shows Oracle HTTP server is running...
    Where i can get other metric table info like JVM, why i can't get the information about ohs_server
    Plz help me over this.
    Regards.,
    Deepak.C

    Hi.,
    Any Help to metric info for Oracle HTTP Server, it's not working still !!!
    Any config needs to be changed for Oracle HTTP Server to make the inforamation available ???

  • Inconsistent SQL results when using View with UNION-ALL and table function

    Can any of you please execute the below scripts and check the output. In the table type variable, I am adding 4 distinct object ids, where as in the result, I get only the row pertaining to last id in the table type variable. Same row is returned 4 times (4= number of values in the table type).
    This scenario is occurring in our product with a SQL with exactly same pattern. I could simulate the same issue with the sample script I have provided.
    Database version: 11.2.0.3 Enterprise Edition, Single node
    Thank you.
    CREATE TABLE TEMP_T1 AS SELECT * FROM ALL_OBJECTS;
    CREATE TABLE TEMP_T2 AS SELECT * FROM ALL_OBJECTS;
    UPDATE TEMP_T2 SET OBJECT_ID = OBJECT_ID * 37;
    CREATE UNIQUE INDEX TEMP_T1_U1 ON TEMP_T1(OBJECT_ID);
    CREATE UNIQUE INDEX TEMP_T2_U1 ON TEMP_T2(OBJECT_ID);
    CREATE OR REPLACE VIEW TEMP_T1T2_V AS
    SELECT * FROM TEMP_T1 UNION ALL SELECT * FROM TEMP_T2;
    CREATE OR REPLACE TYPE TEMP_OBJ_TYPE AS OBJECT (OBJ_ID NUMBER);
    CREATE OR REPLACE TYPE TEMP_OBJ_TAB_TYPE IS TABLE OF TEMP_OBJ_TYPE;
    SET SERVEROUTPUT ON;
    DECLARE
    TYPE TEMP_T1T2_V_ROW_TAB_TYPE IS TABLE OF TEMP_T1T2_V%ROWTYPE;
    TEMP_T1T2_V_ROW_TAB TEMP_T1T2_V_ROW_TAB_TYPE;
    TEMP_OBJ_TAB TEMP_OBJ_TAB_TYPE := TEMP_OBJ_TAB_TYPE();
    PROCEDURE ADD_TO_TEMP_OBJ_TAB(OBJ_ID IN NUMBER) IS
    BEGIN
    TEMP_OBJ_TAB.EXTEND;
    TEMP_OBJ_TAB(TEMP_OBJ_TAB.LAST) := TEMP_OBJ_TYPE(OBJ_ID);
    END;
    BEGIN
    ADD_TO_TEMP_OBJ_TAB(100);
    ADD_TO_TEMP_OBJ_TAB(116);
    ADD_TO_TEMP_OBJ_TAB(279);
    ADD_TO_TEMP_OBJ_TAB(364);
    DBMS_OUTPUT.PUT_LINE('=====================');
    FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
    LOOP
    DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('---------------------');
    SELECT * BULK COLLECT INTO TEMP_T1T2_V_ROW_TAB
    FROM TEMP_T1T2_V VW
    WHERE ((VW.OBJECT_ID) IN (SELECT OBJ_ID
    FROM TABLE(CAST(TEMP_OBJ_TAB AS TEMP_OBJ_TAB_TYPE))));
    FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
    LOOP
    DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('---------------------');
    IF TEMP_T1T2_V_ROW_TAB.COUNT > 0 THEN
    FOR I IN TEMP_T1T2_V_ROW_TAB.FIRST..TEMP_T1T2_V_ROW_TAB.LAST
    LOOP
    DBMS_OUTPUT.PUT_LINE(TEMP_T1T2_V_ROW_TAB(I).OBJECT_ID||' : '||TEMP_T1T2_V_ROW_TAB(I).OBJECT_NAME);
    END LOOP;
    ELSE
    DBMS_OUTPUT.PUT_LINE('NO ROWS RETURNED!');
    END IF;
    DBMS_OUTPUT.PUT_LINE('---------------------');
    END;
    /

    I can reproduce it:
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Oct 30 14:05:39 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Enter user-name: scott
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select  *
      2    from  v$version
      3  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL> CREATE TABLE TEMP_T1 AS SELECT * FROM ALL_OBJECTS;
    Table created.
    SQL>
    SQL> CREATE TABLE TEMP_T2 AS SELECT * FROM ALL_OBJECTS;
    Table created.
    SQL>
    SQL> UPDATE TEMP_T2 SET OBJECT_ID = OBJECT_ID * 37;
    72883 rows updated.
    SQL>
    SQL> CREATE UNIQUE INDEX TEMP_T1_U1 ON TEMP_T1(OBJECT_ID);
    Index created.
    SQL>
    SQL> CREATE UNIQUE INDEX TEMP_T2_U1 ON TEMP_T2(OBJECT_ID);
    Index created.
    SQL>
    SQL> CREATE OR REPLACE VIEW TEMP_T1T2_V AS
      2  SELECT * FROM TEMP_T1 UNION ALL SELECT * FROM TEMP_T2;
    View created.
    SQL>
    SQL> CREATE OR REPLACE TYPE TEMP_OBJ_TYPE AS OBJECT (OBJ_ID NUMBER)
      2  /
    Type created.
    SQL> CREATE OR REPLACE TYPE TEMP_OBJ_TAB_TYPE IS TABLE OF TEMP_OBJ_TYPE
      2  /
    Type created.
    SQL> SET SERVEROUTPUT ON;
    SQL>
    SQL> DECLARE
      2  TYPE TEMP_T1T2_V_ROW_TAB_TYPE IS TABLE OF TEMP_T1T2_V%ROWTYPE;
      3  TEMP_T1T2_V_ROW_TAB TEMP_T1T2_V_ROW_TAB_TYPE;
      4  TEMP_OBJ_TAB TEMP_OBJ_TAB_TYPE := TEMP_OBJ_TAB_TYPE();
      5  PROCEDURE ADD_TO_TEMP_OBJ_TAB(OBJ_ID IN NUMBER) IS
      6  BEGIN
      7  TEMP_OBJ_TAB.EXTEND;
      8  TEMP_OBJ_TAB(TEMP_OBJ_TAB.LAST) := TEMP_OBJ_TYPE(OBJ_ID);
      9  END;
    10  BEGIN
    11  ADD_TO_TEMP_OBJ_TAB(100);
    12  ADD_TO_TEMP_OBJ_TAB(116);
    13  ADD_TO_TEMP_OBJ_TAB(279);
    14  ADD_TO_TEMP_OBJ_TAB(364);
    15  DBMS_OUTPUT.PUT_LINE('=====================');
    16  FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
    17  LOOP
    18  DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
    19  END LOOP;
    20  DBMS_OUTPUT.PUT_LINE('---------------------');
    21  SELECT * BULK COLLECT INTO TEMP_T1T2_V_ROW_TAB
    22  FROM TEMP_T1T2_V VW
    23  WHERE ((VW.OBJECT_ID) IN (SELECT OBJ_ID
    24  FROM TABLE(CAST(TEMP_OBJ_TAB AS TEMP_OBJ_TAB_TYPE))));
    25  FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
    26  LOOP
    27  DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
    28  END LOOP;
    29  DBMS_OUTPUT.PUT_LINE('---------------------');
    30  IF TEMP_T1T2_V_ROW_TAB.COUNT > 0 THEN
    31  FOR I IN TEMP_T1T2_V_ROW_TAB.FIRST..TEMP_T1T2_V_ROW_TAB.LAST
    32  LOOP
    33  DBMS_OUTPUT.PUT_LINE(TEMP_T1T2_V_ROW_TAB(I).OBJECT_ID||' : '||TEMP_T1T2_V_ROW_TAB(I).OBJECT_NAME);
    34  END LOOP;
    35  ELSE
    36  DBMS_OUTPUT.PUT_LINE('NO ROWS RETURNED!');
    37  END IF;
    38  DBMS_OUTPUT.PUT_LINE('---------------------');
    39  END;
    40  /
    =====================
    OBJ_ID = 100
    OBJ_ID = 116
    OBJ_ID = 279
    OBJ_ID = 364
    OBJ_ID = 100
    OBJ_ID = 116
    OBJ_ID = 279
    OBJ_ID = 364
    364 : I_AUDIT
    364 : I_AUDIT
    364 : I_AUDIT
    364 : I_AUDIT
    PL/SQL procedure successfully completed.
    SQL> column object_name format a30
    SQL> select  object_id,
      2          object_name
      3    from  dba_objects
      4    where object_id in (100,116,279,364)
      5  /
    OBJECT_ID OBJECT_NAME
           100 ORA$BASE
           116 DUAL
           279 MAP_OBJECT
           364 I_AUDIT
    SQL>  Works fine in:
    =====================
    OBJ_ID = 100
    OBJ_ID = 116
    OBJ_ID = 279
    OBJ_ID = 364
    OBJ_ID = 100
    OBJ_ID = 116
    OBJ_ID = 279
    OBJ_ID = 364
    100 : ORA$BASE
    116 : DUAL
    364 : SYSTEM_PRIVILEGE_MAP
    279 : MAP_OBJECT
    PL/SQL procedure successfully completed.
    SQL> select  object_id,
      2          object_name
      3    from  dba_objects
      4    where object_id in (100,116,279,364)
      5  /
    OBJECT_ID OBJECT_NAME
          100 ORA$BASE
          116 DUAL
          364 SYSTEM_PRIVILEGE_MAP
          279 MAP_OBJECT
    SQL> select  *
      2    from  v$version
      3  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>SY.
    Edited by: Solomon Yakobson on Oct 30, 2012 2:14 PM

  • Line breaks in emails when using Gmail

    *The problem arises because the iPhone uses "Plain Text" to send emails.*
    *When using gmail, gmail automatically inserts line breaks in "Plain Text" emails every 78 characters, the reason why you see the breaks when unexpected.*
    *See: http://www.google.com/support/forum/p/gmail/thread?id=4d1cecc1aab102ef&hl=en*
    *To fix this problem:*
    *1. Apple can allow us to send mail with Rich Text support from iOS devices OR*
    *2. Google has to change the line breaks setting so that Plain text flows (and isn't broken) <-- this option is probably more realistic*
    *I have tried from a hotmail account, sending email as plain text doesn't have line breaks imposed like the gmail account, but rather "flows".*
    *If you want gmail to add a setting to disable line breaks in plain text emails:*
    *Suggest the feature here:*
    *http://mail.google.com/support/bin/static.py?page=suggestions.cs*
    *I chose these categories:*
    *- I have another idea*
    *- Sending and receiving*
    *- - - Composing and delivery*
    *- - - - Sending options*
    *-For comments: Configure or disable plain text wrap length.*

    I am having the same problem with an IMAP/SMTP account. It was a GMail account, I switched it to using the GMail auto setup and haven't had any issues.
    But under the standard IMAP/SMTP setting almost 1/3 of all messages were showing no content.
    Though I don't recall exactly - I think most of them were sent while I was on 3G, and it otherwise works fine on WiFi.

Maybe you are looking for

  • Making a DVD that stops at the end

    I want to make a straight DVD that stops at the end. Is it possible to do this without using DVDSP? I have exported the files using compressor and burn them in Roxio's Toast, but they will just keep looping. I am on the verge of having to get Final C

  • Accounts hit during different MM transactions

    Could anybody help in knowing the accounts hit during below transactions in MM. With Std price method of valuation, during different scenarios - GR, IR & Payment Normal procurement from vendor - accounts debited, credited, accounts hit in case of pri

  • User  Inforamation

    hai friends, actually iam  abap developer, here my boss is asking all the users, usernames, plant , transaction code, tranasction name , whether he is active or inactive(status)in production. it is very urgent. Thanks & Regards Jagadeeshwar.B

  • Help!!   All my songs are in the wrong order!

    I don't know why this happens, but I just added album art to an album that was in iTunes (ripped from 2 discs using an outside program), and then of course iTunes "couldn't find the original file". The location and filenames of the MP3s did not chang

  • Swing Gurus Help! Problem updating a JProgressBar from within a listener.

    Hello all, I have a static JProgressBar attached to the Main JFrame of my application. One of the screens of my app has a JTable on it. I have a ListSelectionListener attached to the table. When an item is selected on the JTable, I pull some informat