What is the best component to display either text or image?

Hello all
I'd like to realize some kind of application in which i can have a preview of what i select. It can be a text file or image. What kind of components can i use for that. Or is it better to use two different component and layout them in a cardlayout and switch the card either i click on a text file or an image file??
thanks.
David

Or is it better to use two different
component and layout them in a cardlayout and switch
the card either i click on a text file or an image
file??That's what I would do.
Kaj

Similar Messages

  • What is the best way to display a Interactive Report having 20 columns

    Hi,
    I am having a Interactive Report having many columns (around 20).
    What is the best way to display that report...by default we have to scroll it horizontally to see all the columns.
    I want to avoid Horizontally Scrolling.
    Thanks,
    Deepak

    Hello Deepak,
    You mean apart from using a smaller font size or a bigger monitor?
    You can think about combining / wrapping columns (so more data in one column).
    Or hide some less important data and show that only on demand.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • What's the best way to detect that text fits into ContainerControllers without scrolling?

    Hi.
    Question
    What's the best way to detect that text typed by user (or added programmatically) exceeds available container space and find out where starts truncated part? Is there available some other (than described bellow) easy way to detect it or disallow set of controllers to receive more characters that can be displayed in given composition area?
    My partialy failed attempt (simplified)
    For example lets say that I've got an editable textflow with attached two instances of ContainerController.
    var flow:TextFlow = createSomeFlowFromGivenString(sampleText),
        firstController = new ContainerController(firstSprite, 100, 30),
        lastController = new ContainerController(secondSprite, 600, 30);
    flow.interactionManager = new EditManager(new UndoManager());
    flow.flowComposer.addController(firstController);
    flow.flowComposer.addController(lastController);
    flow.flowComposer.updateAllControllers();
    With enabled vertical scroll policy I can compare height of the composition in last controller with height of the content:
    var bounds:Rectangle = lastController.getContentBounds(),
        overflow:Boolean =  lastController.compositionHeight < bounds.height;
    trace('Content does not fit into given area?', overflow)
    But when I switch vertical scroll policy off (lastController.verticalScrollPolicy = ScrollPolicy.OFF) - unfortunately this no longer works...(In my case scrolling should be dissabled, since text areas might have only one line with restricted width)
    Use case
    I want to create fillable form. Field might have a single or multiple lines. One field might start in the middle of the page, continue in the next line where it spreads through whole page and end in the - quarter of page width long  - third line. Text typed by the user can't exceed given area since it might cover some static text that sits right after/below field.
    Something like ascii image bellow:
    |                <PAGE>                    |
    |                                          |
    |                                          |
    |                                          |
    |               [Field starts here........ | 
    | ........................................ |
    | ........................................ |
    | Ends here..]                             |
    |                                          |
    |                                          |
    | [Another field] xxxx  xxxx xxxxxxxx x xx |
    | xxxxxxxxxxxxxxxxxxx                      |
    |                                          |
    |                              [One more.. |
    | .....]                                   |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    Info:
    [......]  <-- form fields starts with '[' character, and ends with ']'
    xxx       <-- sample, static text
    | and _   <-- page borders

    I've tried something like that previously, but it didn't work because then I've got vertical scroll policy to set to 'auto'. After changing verticalScrollPolicy to ScrollPolicy.OFF  in the last container it worked like a charm.
    Thanks zhen bian

  • What's the best method for a nav menu with image rollover for all visitors?

    Hi.
    First, thanks for reading this.
    What's the best method for a nav menu with image rollovers for all visitors, including PDAs? I've used JavaScript rollovers for years because the majority of my customers' visitors use some version of IE (past 7.0) but I'm building a new site that has to display properly for the widest range of visitors imaginable. (I also know that I need to use a more modern method for everyone and this is my excuse to start).
    Finally, using images is critical. I apologize ahead of time to anyone I offend, but I have never seen a nav menu without images that doesn't look just plain terrible.
    Thanks.
    Fitz21

    If you want the best menus possible for Dreamweaver look no further than Project Seven:
    http://projectseven.com/
    They have all kinds of menus and other extensions available for purchase.  Easy to use and they work as advertised.  I personally use Pop Menu Magic and Tab Panel magic myself.  I could go on and on, but I guarantee that if others respond they will echo the same sentiment for Project Seven.

  • What is the best way to click on a thumbnail image

    What is the best way to click on a thumbnail image and have a
    large version of the image appear above it?
    Frames?

    divaPOPgold, a Dreamweaver Extension, is another option:
    http://divahtml.com/products/divaPOPgold/open_popup_windows.php
    quick examples:
    http://209.200.94.134/divaPOPgold_demo.html
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • What is the Best Way to Display a ClobDomain Field on a jspx Page?

    I have a ClobDomain field in my table that I need to display in my jspx form. What is the best way to go about this? I can't just drag and drop the field from my View and place it onto the form.
    Thanks.

    Apply a swap image behavior to the image. DO NOT ENABLE THE
    AUTOMATIC
    RESTORE.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "BillC-Bos" <[email protected]> wrote in
    message
    news:gp0utj$rmk$[email protected]..
    >I have what I imagine is a simple challenge but I after
    reviewing the forum
    >and
    > the DW workspace it seems that the technique I might try
    in GoLive are not
    > really the best way to go.
    >
    > I have a small graphic that when clicked should change
    to a different
    > graphic
    > to indivate that the site's visitor already clicked that
    graphic (which
    > links
    > to a detail page). There are many detail pages and the
    solution to
    > providing
    > navigation from one main page drastically limits the
    amount of information
    > provided on the "master" page making it necessary to
    provide some way to
    > indicate to the visitor that they already selected that
    option - so they
    > can
    > either avoid that link or return to it if they wish.
    >
    > So the "master" page will show an image (icon) that will
    change once the
    > visitor has clicked it. I am not sure how best to make
    this happen and can
    > use
    > some help or guidance. Thanks in advance for you help.
    Be well.
    >
    > Bill C
    >

  • What is the best practice to display info of completed task in process flow

    Hi all,
    I'm starting to study BPM modeling with CE7.1 EHP1. Thanks to the tutorial and example on SDN site and I can easily build my own process in NWDS and deploy to server, start it, finish it.
    I like the new runtime which can show a BPMN diagram to the processors. However, I can't find a way to let the follow up processor to review the task result completed in previous step. I'm more familiar with Guided Procedure, and know there is "Display Callable Object" which can used to show some info of a completed task when the processor/owner/admin/overseer click on a completed task.  Where is the feature in BPM ? What is the best practice to show such task information in BPM environment.
    For example, A multiple level approval process, the higher level approver need to know the comment written by the previous approver. Can he read this information from process flow ?
    I think it is very important feature for a BPM platform. In Guided Procedure, such requirement can be done with Display Callable Object + View Permission, and you just need some coding for the UI. If BPM is superior to GP, I think there must be a way to achieve this, I just do not know how ?
    Can anyone shed me some light on it ?

    Oliver,
    Thanks for your quick reply.
    Yes, Notes and Attachment CAN BE USED for the purpose. But I'm still looking for a more elegant solution.
    With the solution of using Notes/Attachment, the processor need to give input at two places : the task UI and Note/Attach , with similar or same data. It is really annoying.
    Is there any SAP BPM real-world deployment ? None of customer has the requirement ?

  • What's the best way of displaying output in other VI ?

    For example, in a sub-vi I continuously acquire a motor position, and I want the position value to be displayed simultaneously in a numerical indicator or waveform in the main vi.
    I know there are lots of ways to implement this easily, but I just want to know what's the best way which use lest computer resources, say memory....
    Can control reference be used effectively for this?
    Thank you for your suggestion.
    Dejun

    here is an example (in LV7.0) of what Dennis is refering to.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    ctrl reference folder.zip ‏7 KB

  • What is the best way to display text?

    Hi,
    I am developing a full screen presentation. I like to know which is the best way to display text with different styles and fonts.
    When i use JLabel, i have to use HTML. But the presentation is not good as it does not have anti-alias property. Also i want the background to be seen behind the text. Note that all the text in a paragraph is not of same style. I want some words to be in different color and style.
    Thanks,
    Mathan

    It works alos with JTextPane:
    Try this :
    import java.awt.*;
    import javax.swing.*;
    public class MyTextPane extends JTextPane  {
         public void paintComponent(Graphics g) {
              Graphics2D g2d = (Graphics2D)g;          
              g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);          
              super.paintComponent(g2d);
         public static void main(String[] args) {
              JFrame f = new JFrame("test");
              f.getContentPane().add(new JScrollPane(new MyTextPane()));
              f.setBounds(200,200,300,400);
              f.setVisible(true);
    }Denis

  • What is the best way to display errors to users when using JSPs?

              Hello,
              Could someone suggest me the best way to display errors to users when using JSPs?
              Many thanks in advance.
              Rino
              

              Thanks for the code snippet!
              Rino
              "Deepak Vohra" <[email protected]> wrote:
              >
              >
              >The 'errorPage' attribute of the 'page' directive forwards uncaught run-time
              >exceptions
              >to an error processing page. For example:
              >
              ><%@ page errorPage="error.jsp" %>
              >
              >redirects the browser to the JSP page error.jsp if an uncaught exception
              >is encountered.
              >
              >
              >Within error.jsp, indicate that it is an error-processing page, via the
              >directive:
              >
              >
              >
              ><%@ page isErrorPage="true" %>
              >
              >The Throwable object describing the exception may be accessed within
              >the error
              >page via the 'exception' implicit object.
              >
              >
              ><% if (exception != null) { %>
              ><p> An exception was thrown: <b> <%= exception %>
              >
              ><p> With the following stack trace:
              ><pre>
              >
              ><%
              > ByteArrayOutputStream ostr = new ByteArrayOutputStream();
              > exception.printStackTrace(new PrintStream(ostr));
              > out.print(ostr);
              >%>
              ></pre>
              >
              >
              >
              >"Rino Srivastava" <[email protected]> wrote:
              >>
              >>Hello,
              >>
              >>Could someone suggest me the best way to display errors to users when
              >>using JSPs?
              >>
              >>Many thanks in advance.
              >>
              >>Rino
              >
              

  • What is the best way to display image ??

    hi my questions is unusual, there are so many ways to display images.
    I m developing image processing s/w can any one suggest me which would be the best way to display image on which i can perform image operations.
    like in JPanel, icon, trhough paint() or anything else...
    thank you..In advance

    hi man... i think so imaging is better with JAI(Java Advanced Imaging) .... is perfect for display in jcomponent like JPanel or JLabel, you have to replace the paintComponent().
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Rectangle;
    import java.awt.geom.AffineTransform;
    import javax.media.jai.PlanarImage;
    import javax.swing.JComponent;
    class ImagePanel extends JComponent {
         protected PlanarImage image1;
         protected AffineTransform atx= new AffineTransform();
         protected int width, heigth;
         public ImagePanel() {
         public ImagePanel(PlanarImage i) {
              image1= i;
              width= i.getWidth();
              heigth= i.getHeight();
         public void paintComponent(Graphics gc) {
              Graphics2D g= (Graphics2D)gc;
              Rectangle rect= this.getBounds();
              if ((width != rect.width) || (heigth != rect.height)) {
                   double magx= rect.width / (double)width;
                   double magy= rect.height / (double)heigth;
                   atx.setToScale(magx, magy);
              if (image1 != null)
                   g.drawRenderedImage(image1, atx);
    if you need more info, ask about JAI api and docs

  • What is the best practise to provide a text file for a Java class in a OSGi bundle in CQ?

    This is probably a very basic question so please bear with me.
    What is the best way to provide a .txt file to be read by a Java class in a OSGi bundle in CQ 5.5?
    I have been able to read a file called "test.txt" that I put in a structure like this /src/resources/<any-sub-folder>/test.txt  from my java class  at /src/main/java/com/test/mytest/Test.java using the bundle's getResource and getEntry calls but I was not able to use the context.getDataFile. How is this getDataFile method call to be used?
    And what if I want to read the file located in another bundle, is it possible? or can I add the file to some repository and then access it - but I am not clear how to do this.
    And I would also like to know what is the best practise if I need to provide a large  data set in a flat file to be read by a Java class in CQ5.
    Please provide detailed steps or point me to a how to guide or other helpful resources as I am a novice.
    Thank you in advance for your time and help.
    VS

    As you can read in the OSGi Core specification (section 4.5.2), the getDataFile() method is to read/write a file in the bundle's private persistent area. It cannot be used to read files contained in the bundle. The issue Sham mentions refers to a version of Felix which is not used in CQ.
    The methods you mentioned (getResource and getEntry) are appropriate for reading files contained in a bundle.
    Reading a file from the repository is done using the JCR API. You can see a blueprint for how to do this by looking at the readFile method in http://svn.apache.org/repos/asf/jackrabbit/tags/2.4.0/jackrabbit-jcr-commons/src/main/java /org/apache/jackrabbit/commons/JcrUtils.java. Unfortunately, this method is not currently usable as it was declared incorrectly (should be a static method, but is an instance method).
    Regards,
    Justin

  • What is the best way to erase half of an image but keep the other half of the image and make it look real

    I have an image of bracelet with a tube in the middle and need to erase the tube but keep the bracelet to make it look as though the tube was never there, what's the best tool in CS6 to use

    Look at the Content Aware Patch,  Healing Brush, and Spot Healing Brush tools.
    Photoshop Help | Content-Aware Patch and Move
    Nancy O.

  • What is the best way to put links in an image?

    I have created an image with multiple layers and many of the
    layers are the text I would like to use as links. When I sliced up
    the image using layer based slices, the end result was a degraded
    image.
    The page I am working on with the slice marks affecting it
    can be seen at:
    http://www.gigharborrealestate.com/ingigharbor/testpage.htm
    What is the best way to create a series of links in an image?
    The jpeg version of the image I am working on is at:
    http://www.gigharborrealestate.com/ingigharbor/image/form-banner.jpg
    The psd version of the image I am working on is at:
    http://www.gigharborrealestate.com/ingigharbor/image/form-banner.psd
    The html version is at:
    http://www.gigharborrealestate.com/ingigharbor/test.html
    I can't wait to hear from you experts as to the best way to
    do this!
    thanks,
    Mike

    Where did you get this page? It is a melange of ImageReady,
    GoLive, and who
    knows what else, loaded with invalid usages, and other
    oddities....
    Anyhow, the first link shows me no slice marks - what am I
    looking for
    there?
    Normally, one would use an image map (use DW's F1 help to
    look for
    "hotspot") to do something like this.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "egigharbor" <[email protected]> wrote in
    message
    news:elt2fc$og2$[email protected]..
    >I have created an image with multiple layers and many of
    the layers are the
    > text I would like to use as links. When I sliced up the
    image using layer
    > based
    > slices, the end result was a degraded image.
    >
    > The page I am working on with the slice marks affecting
    it can be seen at:
    >
    http://www.gigharborrealestate.com/ingigharbor/testpage.htm
    >
    > What is the best way to create a series of links in an
    image?
    > The jpeg version of the image I am working on is at:
    >
    http://www.gigharborrealestate.com/ingigharbor/image/form-banner.jpg
    >
    > The psd version of the image I am working on is at:
    >
    http://www.gigharborrealestate.com/ingigharbor/image/form-banner.psd
    >
    > The html version is at:
    >
    http://www.gigharborrealestate.com/ingigharbor/test.html
    >
    > I can't wait to hear from you experts as to the best way
    to do this!
    >
    > thanks,
    >
    > Mike
    >

  • What is the best method to revert back to 'golden' image of database

    Hello,
    I want to have a 'golden' image of my test database. What is the best method to keep reverting back to this 'golden' image after testers are done with testing. What I mean is I want to set up a test database for testers. Testers can insert,update, delete on objects as they like. But after the testers have completed their testing, I want to revert the database back to the 'golden' image. This 'golden' image is the state of the database before testers perform their tests. I need to revert back to the 'golden' image many times over as we have to perform many different tests.
    I thought about export and import (9i database) but takes 6 hours, too long. I tried using rman and was successful the first time, (set until time; restore database; recover database; open resetlogs;). The seconde time using rman, I got error saying the set until time was before the resetlogs time. I think I would have to restore the control file before the resetlog time frame before I can recover to the set until time, again.
    What is a straight forward method to have a 'golden' image so I can keep on restoring back to it? This database is a test 9i database and it is in archive log mode but it doesn't need to be. I just need a best practice method, whether it is rman, exp/imp, manual backup/restore? Something I can use time and time over again. Thank you.

    If it is a Test envionment, can you just take a COLD Backup (database files
    plus control files) ? How big is the database ? What platform is it on ?
    eg in a COLD Backup
    a. If using a script, run multiple "cp" (or cpio/tar) commands in parallel to
    copy different database files
    b. If using RMAN (in NOMOUNT), use multiple Chnanels.
    Note : Remember to include ControlFile Backups and Restores as well.

Maybe you are looking for

  • Can you set an alert for birthdays in Addressbook and iCal?

    When I migrated from Palm Calendar to iCal, my calendar had my birthdays in it repeating each year and with a 7 day alert so I could send a card or get a present in time. I see you can list a birthday in Addressbook and set the iCal pref to show them

  • Receiver File Adapter:Variable substitution :FATAL  ERROR

    HI all as per the previous thread : <b>Receiver File Name Variable Substitution :payload: Fatal Error in our idoc to file sceanrio, we are using simple <b>graphical mapping.</b> for dynamic file name , variable field is at <b>Target message type</b>,

  • PROXY to SOAP ; HTTP403 error in PI 7.1

    Hi team, it was proxy to HTTP scenario. Receiver : webportal . We have chnged it to Proxy to SOAP ,due to HTTP does not support multi message generation . I have checked Do NOT USE SOAP Envelope in SOAP rcv channel. Pls find the config details. Adapt

  • Using Mac Mini in my home theater set up...please help...

    I am looking to purchase a mac mini to incorporate it into my home theater. I recently purchased Apple TV, but after doing research...i'm begining to think a mac mini just has several more options (a few $100 more...understood). A few questions... 1

  • Shameful support

    Been a customer for over 10 years. Been running a web hosting company also for over ten years. Verizon has blacklisted my company's mail server IP address. So, it says to visit this page to request delisting. http://my.verizon.com/micro/whitelist/ I