JViewPort in netbeans

Posted on 2004-11-09
Last Modified: 2008-02-01
i wanted to work with JViewPort in NetBeans3.6 , but i dont see any JViewPort component/container in the Swing Palette
(in the left hand side of the NetBeans environment)

any help appreciated

Question by:jaggernat
    LVL 37

    Expert Comment

    >> i dont see any JViewPort component/container in the Swing Palette
    That's right. But I've never needed it.
    You can always add it manually in your code of course.
    What are you trying to do?

    LVL 10

    Author Comment

    i was trying to build a menu with sub-menus in it using JViewPort.


    LVL 37

    Accepted Solution

    >>i was trying to build a menu with sub-menus in it
    I don't see the link with a JViewport?
    Try JMenu with JMenuItem's in it:

    - Make a new JFrame form
    - in the Inspector right-click "Other Components" > Add from palette > Swing > JMenuBar
    - in those you can add JMenu's and in those JMenuItem's
    LVL 37

    Expert Comment


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    commonTwo  challenge 63 69
    count8 challlenge 13 68
    What is the latest versions eclipse neon 2 60
    Unable to start eclipse ? 17 49
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now