Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java Problem

  • 12-12-2004 8:15pm
    #1
    Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭


    Hey,
    Have a tab, containing a textpane. Want to add a scrollar, but having problems adding it. Any suggestions?


Comments

  • Registered Users, Registered Users 2 Posts: 6,602 ✭✭✭daymobrew


    You'll need to provide a lot more info, and some code even.
    Are you adding it in a GUI dialog editor? by code? What functions are you using? Any exceptions when it runs?
    People tend to help people when they are stuck and they've demonstrated that they've tried a good few things AND searched Google (incl http://groups.google.com).

    I know nowt about Java.


  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    Workin on creating a text editor with tabs, been working on it all day. No exception errors.
    I've created a jtabbedpane and I've added a textpane to it. Thats workin fine. I want to add a scroll bar to the text pane. This works without tabs, but when I add the tabs in the scroll bar doesn't work, the space for it is there.

    I think the problem is attaching the scroll bar to the jtabbedpane. Which I've no idea how to do and google isn't throughing up any answers.


  • Registered Users, Registered Users 2 Posts: 128 ✭✭Grand_Izer


    Have you tried adding the text pane to a JScrollPane and attaching this to the tab pane?


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Sounds like your using an IDE rather then doing it by hand. Give more details on how you are creating it.


  • Registered Users, Registered Users 2 Posts: 2,621 ✭✭✭GreenHell


    Fixed it. Was doing things backwards.


  • Advertisement
Advertisement