Non-rectangular windows

The issue is old and I know it is a very strong need of the Java community. That is:
"Can I have non-rectangular windows in a Java application?"
By non-rectangular windows I mean windows like those in WinAmp or RealOne skins, which have round edges and have all of the transparent areas below them working and active.
In http://developer.java.sun.com/developer/bugParade/bugs/4479178.html it is stated that this will be fixed in Tiger release in 2004.
Can anyone please give me any information about this?
I believe a workaround would be to use Eclipse SWT, but I would prefer to stick to standard Java libraries. Is it possible?

See this article:
http://www.ibm.com/developerworks/java/library/j-iframe/

Similar Messages

  • Non rectangular windows using Swing

    Hi everybody
    I've been trying to create a non rectangular window (i.e. an oval window) subclassing javax.swing.JWindow but even though the drawing of the inside of the window works correctly, the problem is with the outer part, which is painted anyway using the background color while I'd like to have it
    transparent so to simulate a real oval window.
    i.e. I'd like to have something like (dots are just fillings to give the drawing some shape):
    |. Transparent background...|
    | ..... ----------------------- .......... |
    | .... / Window ............... \ ....... |
    | .... \ contents .............. / ....... | <--- Window's bounds
    | ..... ----------------------- .......... |
    |_____________________|
    Any idea about how to prevent the background from being painted??
    Thanks in advance
    andrea

    Here is what I have done to overcome a similar problem.
    These two classes help me show a 'Bubble' popup similar to what Windows XP have
    You can tweak it like you want.
    /* Subclass of Window to show the Bubbles */
    public class WindowBubble extends Window{
    public WindowBubble(Frame owner, String text, Point startingPoint){
    super(owner);
    JBubble bubble = new JBubble(text, startingPoint);
    setLocation(startingPoint);
    add(bubble);
    pack();
    /* This code is based on SUN's examples of how to create Oval-Components */
    public class JBubble extends JLabel {
    int capWidth = 30;
    Point start;
    String label;
    BufferedImage image;
    public JBubble() {
    this("", null);
    public JBubble(String label, Point p) {
    this.label = label;
    start=p;
    try {
    Robot r = new Robot();
    image = r.createScreenCapture(new Rectangle(start.x,start.y, getPreferredSize().width, getPreferredSize().height));
    }catch(Exception e){
    e.printStackTrace();
    this.setHorizontalAlignment(JLabel.CENTER );
    public String getLabel() {
    return label;
    public void setLabel(String label) {
    this.label = label;
    invalidate();
    repaint();
    public void paint(Graphics g) {
    int width = getSize().width - 1;
    int height = getSize().height - 1;
    g.drawImage(image,0,0,this);
    Color interior;
    interior = (Color)UIManager.get("ToolTip.background") ;
    // ***** paint the interior of the button
    g.setColor(interior);
    // left cap
    g.fillArc(0, 0, // start
    capWidth, height, // size
    90, 180); // angle
    // right cap
    g.fillArc(width - capWidth, 0, // start
    capWidth, height, // size
    270, 180); // angle
    // inner rectangle
    g.fillRect(capWidth/2, 0, width - capWidth, height);
    // ***** highlight the perimeter of the button
    // draw upper and lower highlight lines
    g.setColor(Color.black);
    g.drawLine(capWidth/2, 0, width - capWidth/2, 0);
    g.drawLine(capWidth/2, height, width - capWidth/2, height);
    // upper arc left cap
    g.drawArc(0, 0, // start
    capWidth, height, // size
    90, 180-40 // angle
    // lower arc left cap
    g.drawArc(0, 0, // start
    capWidth, height, // size
    270-40, 40 // angle
    // upper arc right cap
    g.drawArc(width - capWidth, 0,// start
    capWidth, height, // size
    90-40, 40 // angle
    // lower arc right cap
    g.drawArc(width - capWidth, 0, // start
    capWidth, height, // size
    270, 180-40 // angle
    // ***** draw the label centered in the button
    Font f = getFont(); if(f != null) {
    FontMetrics fm =
    getFontMetrics(getFont());
    g.setColor(getForeground());
    g.drawString(label, width/2 - fm.stringWidth(label)/2, height/2 + fm.getHeight()/2 - fm.getMaxDescent() );
    public Dimension getPreferredSize() {
    Font f = getFont();
    if(f != null) {
    FontMetrics fm = getFontMetrics(getFont());
    return new Dimension(fm.stringWidth(label) + capWidth*2, fm.getHeight() + 10);
    } else {
    return new Dimension(100, 50);
    public Dimension getMinimumSize() {
    return new Dimension(100, 50);

  • Diplaying non-rectangular windows using java.

    I am seeking some information regarding rendering of irregular shaped windows using java. Would like to know if its possible to achieve that using only java, if not then which tool can be used, so that my application can be used across platforms. I have gathered some information but most of the tools are not platform independent, most are useful only for windows, there is no mention of whether the tools will be helpful in UNIX etc. environment.
    Awaiting reply,
    Shweta.

    hi,
    you can create a component you like.you must override the paint method
    and paint the component itself. the Graphics Object in paint give you some methods to paint lines,areas and colors.
    the example paint a clock :
    import java.awt.Container;
    import java.util.Calendar;
    import java.awt.Graphics;
    import java.awt.Color;
    import java.awt.event.WindowListener;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowEvent;
    import java.awt.event.ActionEvent;
    import javax.swing.Timer;
    import java.awt.Label;
    import java.util.TimeZone;
    import java.util.SimpleTimeZone;
    public class Uhr extends java.awt.Frame implements WindowListener,ActionListener
    //{{DECLARE_CONTROLS
    Calendar cal=null;
    int sec;
    int minute;
    int hour;
    double Rh,Rm,Rs;
    int nullx,nully,mx,my,Rk;
    Timer timer=null;
    Label lab=null;
    public Uhr()
    super();
    //{{INIT_CONTROLS
    setSize(200,200);
    setLayout(null);
    setTitle("Pit-Timer");
    cal=Calendar.getInstance();
    TimeZone tz = TimeZone.getDefault();//new SimpleTimeZone(1,"GMT");//;
    // String [] tza=new String[128];
    // tza=TimeZone.getAvailableIDs();
    // for (int i=0;i<tza.length;i++)
    // System.out.println(tza);
    cal.setTimeZone(tz);
    sec=cal.get(Calendar.SECOND);//0..59
    minute=cal.get(Calendar.MINUTE); //0..59
    hour=cal.get(Calendar.HOUR_OF_DAY);//0..23
    lab=new Label("Time");
    lab.setBounds(20,170,180,25);
    add(lab);
    addWindowListener(this);
    timer=new Timer(1000,this);
    timer.setRepeats(true);
    timer.start();
    Rk=getSize().width/2;
    Rs=Rk*0.9;
    Rm=Rk*0.8;
    Rh=Rk*0.6;
    mx=getSize().width/2;
    my=getSize().height/2;
    public static void main(String[] args)
    (new Uhr()).setVisible(true);
    public void paint(Graphics gr)
    //zeichnen Hintergrund
    gr.setColor(Color.red);
    gr.fillArc(mx-Rk/2, my-Rk/2,Rk, Rk, 0, 360);
    //zeichnen Stundenskala
    gr.setColor(Color.darkGray);
    for (double alpha=0;alpha<Math.PI*2;alpha+=Math.PI/6)
    gr.drawLine( mx+(new Double (Rk/2*Math.cos(alpha))).intValue(),
    my+(new Double (Rk/2*Math.sin(alpha))).intValue(),
    mx+(new Double (Rm/2*Math.cos(alpha))).intValue(),
    my+(new Double (Rm/2*Math.sin(alpha))).intValue());
    sekunde(gr);
    minute(gr);
    stunde(gr);
    super.paint(gr);
    public void sekunde(Graphics gr)
    double alpha;
    int x,y;
    gr.setColor(Color.blue);
    alpha=(Math.PI/30*(sec-15));
    x=(new Double (Rs/2*Math.cos(alpha))).intValue();
    y=(new Double (Rs/2*Math.sin(alpha))).intValue();
    gr.drawLine(mx,my,mx+x,my+y);
    public void minute(Graphics gr)
    double alpha;
    int x,y;
    gr.setColor(Color.green);
    alpha=(Math.PI/30*(minute-15));
    x=(new Double (Rm/2*Math.cos(alpha))).intValue();
    y=(new Double (Rm/2*Math.sin(alpha))).intValue();
    gr.drawLine(mx,my,mx+x,my+y);
    public void stunde(Graphics gr)
    double alpha;
    int x,y;
    gr.setColor(Color.yellow);
    alpha=(Math.PI/6*(hour-3));
    x=(new Double (Rh/2*Math.cos(alpha))).intValue();
    y=(new Double (Rh/2*Math.sin(alpha))).intValue();
    gr.drawLine(mx,my,mx+x,my+y);
    public void actionPerformed(ActionEvent e)
    if (e.getSource()==timer)
    sec++;
    lab.setText("Time : "+new Integer(hour).toString()+":"+new Integer(minute).toString()+":"+
    new Integer(sec).toString());
    if (sec==60)
    sec=0;
    minute++;
    if (minute==60)
    minute=0;
    hour++;
    if (hour==24)
    hour=0;
    repaint();
    public void windowActivated(WindowEvent e){}
    //Invoked when a window is activated.
    public void windowClosed(WindowEvent e)
    {//Invoked when a window has been closed.
    timer.stop();
    dispose();
    System.exit(0);
    public void windowClosing(WindowEvent e)
    timer.stop();
    dispose();
    System.exit(0);}
    //Invoked when a window is in the process of being closed.
    public void windowDeactivated(WindowEvent e){}
    //Invoked when a window is de-activated.
    public void windowDeiconified(WindowEvent e){}
    //Invoked when a window is de-iconified.
    public void windowIconified(WindowEvent e){}
    //Invoked when a window is iconified.
    public void windowOpened(WindowEvent e){}
    //Invoked when a window has been opened.
    bye

  • Urgent!Java Frame Cutting according to non-rectangular image (Transparency

    Urgent-Java Frame Cutting according to non-rectangular image (CrossPlatform - Transparency)
    hi, i want to make the frame transparent in order to make a skin like Windows Media Player . skin is non-rectangular how should i make the frame transparent i am using the JWindow as the container. Plz guide me any idea. as an example i have a JWindow i put a non-rectangular image on it via Jlabel . now i want to make the edges of JWindow outside the boundery of the image transparent ... so that my frame seems like a non-rectanguar image . How i do that? But i need a cross platform kinna thing in java especially for windows/mac/linux
    PaulFMendler :: thanks for ur help i looked at the code but it seems to be windows dependent. i need cross-platform way of producing abt effects. please contact me even on my email >> [email protected]
    Waiting ......

    Check out the link shown below:
    http://forum.java.sun.com/thread.jsp?forum=4&thread=391403
    The posted code has slight problem when moving the JWindow around but you can get a pretty good idea on what has to be done.
    ;o)
    V.V.

  • Cropping non-rectangular image

    Hello,
    I need to crop  a slightly non-rectangular, four-sided image (a photo of a picture in a frame) and end up with a rectangular image. I've tried cropping and lassoing but nothing seems to do the job. Most grateful if anyone can tell me how I might do this on PSE.
    Thanks
    Michael

    Witteboomen wrote:
    Plse excuse Dunn question, Michel, but what is ACR?
    Best
    Michael
    ACR (Adobe Camera Raw) is the module of PSE which is used to first convert raw images so that they can be read and edited in the Editor.
    This module can also be used to open jpeg files:
    In the Editor, menu /File/Open As
    you select a jpeg picture and in the line'Open As', just under where you enter the file name, you must choose the 3rd option :
    Camera raw...
    This opens a new dialog window in which you can do the main edits to your image by adjusting a few sliders.
    Of course, raw file will benefit more from being processed in ACR, but it's also interesting for jpegs.
    How can editing through ACR be a 'non destructive' process ?
    It's because the principle of ACR (also used in Photoshop CS) is to store all editing commands and settings separately from the original picture data which are never changed. In the case of jpegs, the settings are stored in the metadata section of the jpeg file (where the camera name and settings are kept) without changing anything in the way pixels are represented. The 'recipe' is stored, but the pixels stay unchanged. When you straighten and crop, if you click 'Done', the settings are saved. If you want to do some editing or print your file, you click 'Open' and the result of your edits in ACR is opened in the Editor.  If you do changes in the editor, of course, those edits will be 'destructive' (as usual in the Editor)  so that you'll have to save the file with another name to keep the original. If you do no edits in the Editor,  but only print or convert the file to another format, the original picture data is not changed.
    In that last case, you don't need to re-open the picture with 'Open As', the Editor will know the picture has to be opened in the ACR module with the usual 'Open'. But it you want to re-open the same picture in another application like Picasa, the Adobe editing data will be ignored and you'll see the original version.

  • Non Modal Window Popup BSP View

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

  • EvtFormatMessage function fails with error code 15033 (ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND) on non-English Windows OS

    I have an App which subscribes to Windows events and if it is matching the filter criteria, it reports it.
    I have observed a strange problem on non-English windows 2008 OS. 
    If the Windows event is of source = EventLog (e.g. Event ID 1102: Security log was cleared), then EvtFormatMessage fails with error code 15033. But if the event is of any other source (e.g. Microsoft Security Auditing), then it works absolutely fine.
    While calling EvtOpenPublisherMetadata, I have created locale ID as MAKELCID(MAKELANGID(0x09,0x01) i.e. Primary language = LANG_ENGLISH and Sub Language = SUBLANG_DEFAULT.
    I want events details in English only and hence primary language is put as English. If I change this macro to have primary language as LANG_CHINESE and sub language as SUBLANG_CHINESE_SIMPLIFIED, then it works fine but gives back event details in native
    OS language (Chinese in this case). That's not a desirable output for me.
    Following is the way I'm calling EvtFormatMessage 
    EvtFormatMessage(hMetaData, hEvent[0], -1, 0, NULL,
                                   1 /* EvtFormatMessageEvent */, 
                                   m_pTextBufferSize/sizeof(WCHAR),
                                   m_pTextBuffer, &dwBuffUsed);
    A work-around for this is to install a MUI pack for English language. If the MUI pack is installed then it works fine. But I cannot enforce users to have this pack installed on all their systems.
    My question is  why this API is working for some set of Events whereas failing for some specific Events? Am I doing something wrong?
    Any help would be appreciated.
    TIA,
    Regards,
    Yogesh
     

    Was on vacation and hence the delay in replying.
    As mentioned earlier, while calling EvtOpenPublisherMetadata, I have created locale ID as MAKELCID(MAKELANGID(0x09,0x01)
    i.e. Primary language = LANG_ENGLISH and Sub Language = SUBLANG_DEFAULT.  If I change this macro
    to have primary language as LANG_CHINESE and sub language as SUBLANG_CHINESE_SIMPLIFIED, then it works fine but gives back event details in native OS language (Chinese in this case).
    This is not an option for me as I want event details in English language only.
    Regards,
    Yogesh
    Regards, Yogesh

  • Bug when getting file path in non-english Windows Vista

    Hello,
    I'm getting an error when trying to get the file path of a video in a non-english Windows Vista... The code is:
    var file = "video.flv"
    var filePath = air.File.applicationStorageDirectory.resolvePath(file);
    filePath = filePath.nativePath;
    The filePath variable is used later by a flash video player to load the video file..
    In the brazilian Windows Vista the path of the StorageDirectory would be something like "C:\Usuários\(user name)\..." but if I run this script it returns "C:\Users\(user name)\..." as the native path.
    The problem seems to be in the "nativePath" function, cause I'm able to copy files to the app-storage folder using the "air.File.appicationStorageDirectory.resolvePath()" method without any problems.
    I could insert a small code which substitutes "Users" with "Usuários" but then it wouldn't work on an english Vista...
    Any ideas on this? Is there a way to check the language of the operating system in Air so to act accordingly?
    Thanks for any help!

    Hello,
    has anybody found a solution?
    Testcase: SQL Developer 3.1 on a German XP with default NLS Settings
    CREATE TABLE "TEST_TABLE"
           "NUM" NUMBER
          ,"VCH"  VARCHAR2(10 BYTE)
        ) ;Test file test_insert.dsv
    num;vch
    1;KL
    1,5;tz
    12345,45;ooImporting using the wizard inserts the first row correctly, for the others I get
    SET DEFINE OFF
    --Einfügen für Zeilen  1  bis  3  nicht erfolgreich
    --ORA-01722: invalid number
    --Zeile 2
    INSERT INTO TEST_TABLE (NUM, VCH) VALUES (1.5,'tz');
    --Zeile 3
    INSERT INTO TEST_TABLE (NUM, VCH) VALUES (12345.45,'oo');Beside the wrong umlaut in the message the insert statement itself is correct, because you cannot use the german decimal separator "," in the script. The bug is, that it should use the same NLS settings for generating and running the script.
    Regards
    Marcus

  • How can I count the number of pixels in a non-rectangular selection?

    I need to know the exact number of pixels that I select for a size comparison. It's a non-rectangular selection similar to a cloud.
    I'm using CS2 but could upgrade if needed.

    Thank You
    Michael D. Sutton
    (435) 723-3566
    (435) 720-2878
    [email protected]

  • Non-Rectangular Buttons with images

    is it possible to create a non-square "button" in flash cs4
    programmatically using as3?
    Using a xml document, i'm trying to be able to retrieve a
    .png file with transparency, and have said transparent area's be
    not clickable.
    Long story short, I'm creating a map with a bunch of
    clickable areas. These areas are non-rectangular and I need them to
    not obscure other area's which would be in their rectangle. I need
    this to be done programmatically since the area's are going to be
    dynamic as is the data attached to them.
    fyi: I have a fairly good grasp of OOP, so don't be afraid to
    post up complex instructions.

    Now we're cooking with gas! Thank you so much for your
    assistance!
    The only issue left;
    is it possible for the Events to penetrate through, so that
    if two elements slightly overlap, the transparent part of obj1 will
    allow a onclick (and subsequently the onmouseover) event on el2,
    preferably dynamically so that I don't have to add event handlers
    between the two.
    Is there a simple way or do i need to calculate the overlap
    using the x/y coords and width/height of each element, then
    manually dispatch?
    here's where I'm at thus far (with this discussion)
    Firstly, the class for the movie clip,
    then our frame.

  • Regarding TreeItemType and Non Modal window in WDA

    Hello Guys,
    I am showing data in tree format in WDA and handling onAction event of TreeItemType. whenever user is clicking the last node in hierarchy (UI element TreeItemType), I am navigating to detailed view.
    the problem I am facing is that user is expanding the tree and selecting the child node to navigate to detailed view and now when he comes back to initial view, entire tree gets collapsed. and this leads user to again expand the tree.
    Is anyone have idea on this problem. I wanted my first view to be same after user navigates to 2nd view and comes back to 1st one.
    apart from this I have below question,
    1) In WDA, we cannot have non-modal window. Correct?
    2) If we call external window within WDA then the same application will not work in portal environment (WDA iView). Please let me know if this is correct?
    Thanks,
    Chandra

    Hallo Chandra,
    What you do when the control returns from view-2 to view-1 ? . Tree is not collapsing itself i suppose. Some how ,Contexts are being manipulated or node is invalidated forcing supply function to call.
    You could save the lead selected item before you navigate to view-2. When you come back again position the correct item.
    > 1) In WDA, we cannot have non-modal window. Correct?
    In what context you mean ? you can have external_window or link_to_url.
    If you mean popup then it is not possible to have non-modal.
    > 2) If we call external window within WDA then the same application will not work in portal environment (WDA iView). Please let me know if this is correct?
    This is correct.

  • Pure SQL to partition date-time occurrences into non-overlapping windows?

    i've a question that so far, i've never been able to solve via a pure SQL option.
    it's hard to explain in words, but it's something like this:
    given a set of date-time, i would like to partition the data into non-overlapping windows of 30 minutes each.
    the data is supposed to be partitioned into windows of 30 minutes, meaning when the data is within 30 minutes of the first occurrence, only the first occurrence will be returned. in the next second after the 30th minute, the record will be considered as the start of a new window and is also returned. so those data that occurs within the window period are suppressed. the first occurrence is not necessarily occurring on the 00th minute, so the window start will never be constant.
    run the below query to look at the dummy data.
    SELECT     'A' AS ID
              , TRUNC(SYSDATE) + 7 / 24 + 1 *(ROWNUM - 1) / 1440 AS datetime
          FROM DUAL
    CONNECT BY ROWNUM <= 50
    UNION ALL
    SELECT     'A' AS ID
              , TRUNC(SYSDATE) + 9 / 24 + 8 / 1440 + 1 *(ROWNUM - 1) / 1440 AS datetime
          FROM DUAL
    CONNECT BY ROWNUM <= 35
    UNION ALL
    SELECT     'B' AS ID
              , TRUNC(SYSDATE) + 7 / 24 + 5 *(ROWNUM - 1) / 1440 AS datetime
          FROM DUAL
    CONNECT BY ROWNUM <= 15this is supposed to be the output.
    ID     DATETIME
    A     5/19/2010 07:00:00
    A     5/19/2010 07:30:00
    A     5/19/2010 09:08:00
    A     5/19/2010 09:38:00
    B     5/19/2010 07:00:00
    B     5/19/2010 07:30:00
    B     5/19/2010 08:00:00so far, i'm using a PL/SQL to pipe the records. but i would like to know if this is achievable via SQL or not.
    i've tried looking at analytics, width_bucket, ntile and alll options i can think of, but i just can't solve this at all.

    hey Bob,
    your answer is most definitely correct and does what i want. i've verified it again my data set and it returns the results as required!
    you've definitely proven me wrong. i was always under the impression that this wasn't possible. thanks!
    just a small note:
    i need the windows to be binned by seconds, so have changed the numtodsinterval to raw numbers.
    WITH t AS
         (SELECT 'A' AS ID
                , TRUNC(SYSDATE) +(6.75 / 24) AS datetime
            FROM DUAL
          UNION ALL
          SELECT 'A' AS ID
                , TRUNC(SYSDATE) +(6.75 / 24) AS datetime
            FROM DUAL
          UNION ALL
          SELECT     'A' AS ID
                    , TRUNC(SYSDATE) + 7 / 24 + 1 *(ROWNUM - 1) / 1440 AS datetime
                FROM DUAL
          CONNECT BY ROWNUM <= 50
          UNION ALL
          SELECT     'A' AS ID
                    , TRUNC(SYSDATE) + 9 / 24 + 8 / 1440 + 1 *(ROWNUM - 1) / 1440 AS datetime
                FROM DUAL
          CONNECT BY ROWNUM <= 35
          UNION ALL
          SELECT     'B' AS ID
                    , TRUNC(SYSDATE) + 7 / 24 + 5 *(ROWNUM - 1) / 1440 AS datetime
                FROM DUAL
          CONNECT BY ROWNUM <= 15)
        ,a AS
         (SELECT ID
                ,datetime
                ,LAG(datetime) OVER(PARTITION BY ID ORDER BY datetime) AS prevtime
                ,LAST_VALUE(datetime) OVER(PARTITION BY ID ORDER BY datetime RANGE BETWEEN CURRENT ROW AND 30 / 1440 + 1 / 86400 FOLLOWING) AS interval_end
            FROM t)
        ,b AS
         (SELECT ID
                ,datetime
                ,LEAD(datetime) OVER(PARTITION BY ID ORDER BY datetime) AS nexttime
            FROM t)
        ,ab AS
         (SELECT a.ID
                ,a.datetime
                ,a.prevtime
                   ,a.interval_end
                   ,b.datetime as b_datetime
                ,b.nexttime
            FROM a JOIN b ON(a.ID = b.ID
                             AND a.interval_end = b.datetime)
    SELECT     ID
              ,datetime
          FROM ab
    START WITH prevtime IS NULL
    CONNECT BY ID = PRIOR ID
           AND datetime = PRIOR nexttime
      ORDER BY ID
              ,datetime;this most definitely proves that i'm still not sure of how to use hierarchy queries.
    Edited by: casey on May 20, 2010 11:20 AM

  • LV 8.20 crashes on opening non-existent window

    With LV 8.20 and Mac OS X 10.4.8
    Open LV, and by default it opens a blank window.
    (preferences
    IsFirstLaunch: False
    showNoNavDialog: True
    skipNavigatorDialog: True
    Close the blank window titled "Untitled 1 Front Panel" using the "close button"
    Note that in the Window menu, "Untitled 1 Front Panel" and "Untitled 1 Block Diagram" both still exist.
    Select "Untitled 1 Front Panel" in the window menu.
    LV will crash as it tries to display a non-existent window
    Crash at VirtualInstrument.cpp 2345
    Reported to NI SRQ 7137659

    Just to update, CAR #43RAJ3C5 has been issued for this.

  • "Non rectangular objects will not appear correctly when exported using CSS."

    I am using Ind CC 2014 exporting a document to a reflowable epub.  The document contains an .ai image.  The image exports correctly in some parts of the.epub but not others, where it is distorted. There is a warning on export :"Non rectangular objects will not appear correctly when exported using CSS."  Any suggestions appreciated.

    Thanks!
    >
          "Non rectangular objects will not appear correctly when exported
          using CSS."
    created by pooja2087 <https://forums.adobe.com/people/pooja2087> in
    /InDesign EPUB/ - View the full discussion
    <https://forums.adobe.com/message/6886892#6886892>

  • How to display topic content in non-RH window?

    Morning all,
    I'm working with my developers to find the best answer to this: How can we display topic content in a non-RH window.
    Currently, I'm running RH 8.0.2 and generating WebHelp. We want to keep all content in RH, and for one part of our web service, we want to display topic content, but not a window generated by RH. In fact, we really just need the data to appear in something simple like a table cell. We don't want to hard code the content as it's likely to change.
    I'm guessing since the folks on this forum have done everything w/ RH short of alchemy, someone out there has already done something like this.
    So far, we're looking at opening the .htm file and pulling everything inside the body tags, then displaying that in whatever structure the developers decide is best. Kinda crude.
    Questions that come up:
    How do we match the content to the page it's displayed on since we're not using any of the RH structure around the content?
    Is there a slick way to do this with the CSH API and MapIDs?
    Since we're just using the content, the title tag is unused for these topics. Is there a way we could leverage this tag to help track the topic or the page it will display on?
    As always, any enlightenment is welcome.
    Patrick

    Peter,
    Thanks, but not really. I had read through that topic a while back.
    It looks like we really need to display the content (probably everything between the body tags?) in an HTML element like a <td>. We could do frames, but for a small help window, they really eat up a lot of space and definitely don't fit in with the style of the site.
    I think the display of the content will be left in the developer's hands - that's what they get paid for.
    If you have any thoughts on how to reference the content, I'd love to hear them. I can't see MapIDs working as we're not using the CSH API. Though I suppose our developers could hack the .js file and determine how RH uses the MapIDs and recreate that. But that's a lot of work.
    Referencing the topic by the name of the .htm file locks us into that file name and makes future changes a little more difficult.
    The only thing I've come up with so far is to put a code in place of the <title> tag since the title won't be displayed. That way we could change the content w/out the developers having to recode. Crude, I know.
    Regards,
    Patrick

Maybe you are looking for

  • Construindo vetores

    Boa noite colegas.  Meu problema é o seguinte:  Objetivo: Contruir um subVI que faça média móvel de "n" elementos de um vetor que faz sucessivas leituras. Meu algoritmo mental: 1º) Inicializar o vetor: valor de INICIALIZAÇÃO e "n" ELEMENTOS; 2º) Quer

  • Can I still use 2009 27" iMac as an external display if it could not boot successfully itself?

    My friend has a 2009 27" iMac. For some unkonwn reasons, this iMac now could not boot succesfully recently. As I know, this iMac could be used as an external display in "target display mode", right? Could it be still used as an external display if it

  • Can't find supported flash player

    hello... I have an iMac OS 9.2.2 and i am trying to update everything but am running into a problem finding a flash player that is supported inorder to view images or videos on the internet (ex.hallmark e-card). I have been battling and recently down

  • Moving Windows 7 preload to Intel mSata 80gb SSD

    I'm thinking of installing an Intel mSata 310 SSD to the internal slot on my W520. What is the procedure for moving the OS from the HDD to the SSD? Do I have to do a complete reinstall of the OS and Apps on the C; drive or can I just relocate the inf

  • Timed Out - What happened???

    I've been trying to upload my QT.mov files to a server, but when I do after about a minute I get a message (sometimes) "Connection to server has timed out - network problems" or it just stops uploading and 'hangs up' and I have to restart the compute