ScrollBars not showing up for the JPanel [urgent]
Hi,
I have a frame in which i have two nested split panes i.e one horizontal splitpane and in that i am having one more split pane on the right side and a JTree on the left side.In the second split pane (which is a vertical split) ,as a top component , i am setting a JScrollPane in which i am trying to display a JPanel which is having a lot of swing components in it.I want to see the scroll bars for this panel so that i can see all the components.Do i have to implement Scrollable interface for this panel to scroll in the ScrollPane.I don't know how to implement Scrollable interface.Can some body help me in resolving this?This is some what urgent.Any help will be highly appreciated.
Thanks in advance.
Ashok
Thank you all for your replies.I added the scroll bar policy.The scroll bars are showing up but the components inside the Panel are not moving.I want the components to move when i am scrolling.Here is my code.In the code SeriesDescPanel, SeriesDescMapPanel are sub classes of JPanel.I am using null layout to add the components to these panels.
public class MainWindow extends JFrame implements TreeExpansionListener
public MainWindow()
throws RemoteException
// This code is automatically generated by Visual Cafe when you add
// components to the visual environment. It instantiates and initializes
// the components. To modify the code, only use code syntax that matches
// what Visual Cafe can generate, or Visual Cafe may be unable to back
// parse your Java file into its visual environment.
//{{INIT_CONTROLS
setJMenuBar(menuBar);
setTitle("Series Maintenance");
getContentPane().setLayout(new BorderLayout(0,0));
setSize(667,478);
setVisible(false);
JSplitPane1.setDividerSize(1);
JSplitPane1.setOneTouchExpandable(true);
getContentPane().add(BorderLayout.CENTER, JSplitPane1);
seriesMenu.setText("Series");
seriesMenu.setActionCommand("Series");
menuBar.add(seriesMenu);
newSeriesGroupMenuItem.setText("New Series Group");
newSeriesGroupMenuItem.setActionCommand("New Series Group");
seriesMenu.add(newSeriesGroupMenuItem);
newSeriesMenuItem.setText("New Series");
newSeriesMenuItem.setActionCommand("New Series");
seriesMenu.add(newSeriesMenuItem);
seriesMenu.add(JSeparator1);
serachMenuItem.setText("Search");
serachMenuItem.setActionCommand("Search");
seriesMenu.add(serachMenuItem);
seriesMenu.add(JSeparator2);
saveMenuItem.setText("Save");
saveMenuItem.setActionCommand("Save");
seriesMenu.add(saveMenuItem);
seriesMenu.add(JSeparator3);
exitMenuItem.setText("Exit");
exitMenuItem.setActionCommand("Exit");
seriesMenu.add(exitMenuItem);
adminMenu.setText("Administration");
adminMenu.setActionCommand("Administration");
menuBar.add(adminMenu);
bulkLoadMenuItem.setText("Bulk Load");
bulkLoadMenuItem.setActionCommand("Bulk Load");
adminMenu.add(bulkLoadMenuItem);
drsMenuItem.setText("DRS override");
drsMenuItem.setActionCommand("DRS override");
adminMenu.add(drsMenuItem);
helpMenu.setText("Help");
helpMenu.setActionCommand("Help");
menuBar.add(helpMenu);
tutorialMenuItem.setText("Tutorial");
tutorialMenuItem.setActionCommand("Tutorial");
helpMenu.add(tutorialMenuItem);
bulkLoadFormatMenuItem.setText("Bulk Load Format");
bulkLoadFormatMenuItem.setActionCommand("Bulk Load Format");
helpMenu.add(bulkLoadFormatMenuItem);
aboutMenuItem.setText("About");
aboutMenuItem.setActionCommand("About");
helpMenu.add(aboutMenuItem);
JSplitPane2 = new javax.swing.JSplitPane();
upperPanel = new SeriesDescPanel();
JScrollPane2 = new javax.swing.JScrollPane(upperPanel,
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
JScrollPane3 = new javax.swing.JScrollPane();
JSplitPane2.setOrientation(0);
JSplitPane2.setDividerSize(1);
JSplitPane2.setOneTouchExpandable(true);
JSplitPane1.setRightComponent(JSplitPane2);
JSplitPane1.setLeftComponent(viewPane);
viewPane.add(alphabeticPane);
viewPane.add(searchDataPane);
viewPane.setTitleAt(0,"All");
viewPane.setTitleAt(1,"search");
//JScrollPane1.setMinimumSize(new Dimension(126, 478));
JSplitPane2.setTopComponent(JScrollPane2);
//JScrollPane2.setMinimumSize(new Dimension(426, 409));
JSplitPane2.setBottomComponent(JScrollPane3);
lowerPanel = new SeriesDescMapPanel();
seriesTreeModel = new SeriesTreeModel(SeriesMaintenanceUI.getSeriesGroupInfo());
tickersTree.setModel(seriesTreeModel);
alphabeticPane.getViewport().setView(tickersTree);
//JScrollPane2.getViewport().setView(upperPanel);
//JScrollPane2.setViewportView(upperPanel);
//upperPanel.scrollRectToVisible(new Rectangle(upperPanel.getWidth(),
//upperPanel.getHeight(),1,1));
JScrollPane3.getViewport().setView(lowerPanel);
//JSplitPane2.setPreferredSize(new Dimension(426,200));
SeriesDescPanel upperPanel;
SeriesDescMapPanel lowerPanel;
SeriesTreeModel seriesTreeModel;
SeriesTreeModel searchTreeModel;
javax.swing.JSplitPane JSplitPane2;
javax.swing.JScrollPane JScrollPane2;
javax.swing.JScrollPane JScrollPane3;
javax.swing.JTree tickersTree = new javax.swing.JTree();
javax.swing.JTree searchTree = new javax.swing.JTree();
javax.swing.JScrollPane alphabeticPane = new javax.swing.JScrollPane();
javax.swing.JTabbedPane viewPane = new JTabbedPane(SwingConstants.BOTTOM);
javax.swing.JScrollPane searchDataPane = new javax.swing.JScrollPane();
//{{DECLARE_CONTROLS
javax.swing.JSplitPane JSplitPane1 = new javax.swing.JSplitPane();
javax.swing.JMenuBar menuBar = new javax.swing.JMenuBar();
javax.swing.JMenu seriesMenu = new javax.swing.JMenu();
javax.swing.JMenuItem newSeriesGroupMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenuItem newSeriesMenuItem = new javax.swing.JMenuItem();
javax.swing.JSeparator JSeparator1 = new javax.swing.JSeparator();
javax.swing.JMenuItem serachMenuItem = new javax.swing.JMenuItem();
javax.swing.JSeparator JSeparator2 = new javax.swing.JSeparator();
javax.swing.JMenuItem saveMenuItem = new javax.swing.JMenuItem();
javax.swing.JSeparator JSeparator3 = new javax.swing.JSeparator();
javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenu adminMenu = new javax.swing.JMenu();
javax.swing.JMenuItem bulkLoadMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenuItem drsMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenu helpMenu = new javax.swing.JMenu();
javax.swing.JMenuItem tutorialMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenuItem bulkLoadFormatMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
Pl. help me in resolving this.
Ashok
Similar Messages
-
4EA2 the Detail display for views does not show comments for the view
I am running in an Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production environment.
The Detail tab for a View does not show comments added for the view. I would like to request that the Detail tab be modified to display any comments added for the view.
This is important for me because I want to use the Generate DB doc function (from the right-click menu linked to schemas), to generate documentation, and that function uses the same format as the Detail Tab. The View Comments are important for my users.Hi Penny Halsall,
Kindly check if that Facebook page can be followed by the public. If the profile can't be followed by the public, then the widget won't work as accepted.
Facebook provides instructions to check/do this here: https://www.facebook.com/help/201148673283205
OR
You can generate the associated HTML code from this page :
https://developers.facebook.com/docs/plugins/
Regards
Sonam -
I'm on a PC attempting to view a downloaded PDF. It's an application so the document is generated by our online system and aggregates info from the applicant as well as documents they uploaded. I can see most of the final product but the document uploaded by the applicant gives the error "For the best experience, open this PDF portfolio in Acrobat 9 or Adobe Reader 9, or later." I downloaded the latest Reader (DC) and when I searched to download the latest Flash Player I got a message that it should be up-to-date since I use Chrome. I've seen other folks having this problem; any suggestions?? Thanks in advance.
Thanks for your response! The document appears the same either way. I downloaded the file and have opened it with both Adobe Acrobat and Adobe Acrobat Reader DC.
-
Vertical scrollbar not showing all the records when I scroll down.
Vertical scrollbar not showing all the records when I scroll down.
Using Oracle forms 10g , operating system windows
I have two fields with number of items dispayed = 15.
I have a vertical scroll bar with them. There are 34 records in the table but the scrollbar only shows 15 records.
Here are the properties for block / scrollbar.
WORK_CATEGORY
- Subclass Information
- Comments
* Navigation Style Same Record
- Previous Navigation Data Block
- Next Navigation Data Block
- Current Record Visual Attribute Group
- Query Array Size 0
- Number of Records Buffered 0
* Number of Records Displayed 60
* Query All Records No
- Record Orientation Vertical
* Single Record No
- Database Data Block Yes
- Enforce Primary Key No
- Query Allowed Yes
- Query Data Source Type Table
* Query Data Source Name WORK_CATEGORY
* Query Data Source Columns
* Column Name JOB_TYPE
* Column Type VARCHAR2
- Column Type Name
- Parent Column
* Length 30
* Precision 0
* Scale 0
* Mandatory Yes
* Column Name WORK_CATEGORY
* Column Type VARCHAR2
- Column Type Name
- Parent Column
* Length 30
* Precision 0
* Scale 0
* Mandatory Yes
- Query Data Source Arguments
- Alias
- Include REF Item No
* WHERE Clause
* ORDER BY Clause job_type
- Optimizer Hint
- Insert Allowed Yes
- Update Allowed Yes
- Locking Mode Automatic
- Delete Allowed Yes
- Key Mode Automatic
- Update Changed Columns Only No
- Enforce Column Security No
- Maximum Query Time 0
* Maximum Records Fetched 0
- DML Data Target Type Table
- DML Data Target Name
- Insert Procedure Name
- Insert Procedure Result Set Columns
- Insert Procedure Arguments
- Update Procedure Name
- Update Procedure Result Set Columns
- Update Procedure Arguments
Don't know where am I going wrong. I'll really appreciate if you can help me in this.
Thanks.
Edited by: 831050 on Sep 14, 2011 8:05 AMOne of the items is a list item.. here are it's properties:
* Name JOB_TYPE
* Item Type List Item
- Subclass Information
- Comments
- Help Book Topic
- Enabled Yes
* Elements in List
* Label
* List Item Value LIST20
* List Style Combo Box
- Mapping of Other Values
- Implementation Class
- Case Restriction Mixed
- Popup Menu
- Keyboard Navigable Yes
- Mouse Navigate Yes
- Previous Navigation Item
- Next Navigation Item
- Data Type Char
- Data Length Semantics Null
- Maximum Length 30
- Initial Value
* Required Yes
* Copy Value from Item
- Synchronize with Item
- Calculation Mode None
- Formula
- Summary Function None
- Summarized Block
- Summarized Item
- Current Record Visual Attribute Group
- Distance Between Records 0
* Number of Items Displayed 15
- Database Item Yes
* Column Name JOB_TYPE
- Primary Key No
- Query Only No
- Query Allowed Yes
- Insert Allowed Yes
- Update Allowed Yes
- Update Only if NULL No
- Visible Yes
* Canvas CANVAS2
- Tab Page
* X Position 47
* Y Position 137
* Width 187
* Height 18
- Visual Attribute Group DEFAULT
- Prompt Visual Attribute Group DEFAULT
- Foreground Color
* Background Color white
- Fill Pattern
- Font
* Font Name Tahoma
* Font Size 10
* Font Weight Demilight
* Font Style Plain
* Font Spacing Normal
* Prompt Job Type
- Prompt Display Style First Record
* Prompt Justification Start
* Prompt Attachment Edge Top
- Prompt Alignment Start
* Prompt Attachment Offset 10
* Prompt Alignment Offset 0
- Prompt Reading Order Default
- Prompt Foreground Color
- Prompt Font
* Prompt Font Name Tahoma
* Prompt Font Size 10
* Prompt Font Weight Bold
* Prompt Font Style Plain
* Prompt Font Spacing Normal
- Hint
- Display Hint Automatically No
- Tooltip
- Tooltip Visual Attribute Group
- Direction Default
- Initial Keyboard State Default
- Keyboard State Any
-
i purchased 2 books for my iPad and they downloaded successfully. They show up in iTunes when my iPad is connected to my Mac but do not show up on the Mac. Is this a synch issue? When I click the Synch box I am warned that downloads on my iPad will be erased. Is that true? My ultimate goad is to be able to read the books on my iPhone as well. Thanks.
You should be able to copy them to your computer's iTunes via File > Transfer Purchases and you can then sync them to the iPhone (or you could re-download them directly on the iPhone)
-
Calculate result as average in the report not showing average for all
Hello,
I have a calculated key figure in the query where its result should show average. I have made a setting for this calculated key figure as:
1. Calculations tab: Calculate result as "average" and calculate single value as "nothing defined"
2. Aggreagation tab: exception aggregation: Total and reference char: []
Now coming to report, BEX it showing correct average for all cells but when i run it in portal few values it is showing correct average but for few it is showing as blank. I exported this to excel then cell shows blank but cell has some values in the custom format and display values when i change the format to general from "format cells" option.
Please help me in resolving the issue- why portal not showing value for all.
Thanks,
VijayaSAP note solved the purpose.
Thanks & Regards,
Vijaya -
Do not show dots for 'free' events in the calendar month view
I wish I could.... not show dots for 'free' events in the calendar month view. For an overview of when I have hard-scheduled events in the calendar it's pretty tedious and slow to go day -by day, and other views... Instead the dot in the month view... - why does it show even "free" events? Any ideas, tips?
Thanks!Unfortunately there is no option to disable the dots.
<Edited by Host> -
Since upgrading to the newest version of ios 8, I can no longer share my photos on facebook. I have tried going to settings-privacy-photos, but the facebook app does not show up for me to change the settings. Any suggestions?
when you opened the shared library with the newer version of iPhoto (iPhoto '11) you were given a warning that your library would be converted and could not be used by older versions - you clicked ok to go ahead - there is no updo available - either upgrade to iphoto '11 of the MBP or load your backup of the iPhoto '09 library on it - older versiopns of i{Photo can not read newer libraries
LN -
I have an iPod Nano that is synced to my mac, but it is sent in for the battery issue. Anyway, I have bought a 2nd gerneration Ipod touch and I want to now sync it to my mac, but it does not show up in the left menu bar. Please help. Thanks All!
http://support.apple.com/kb/TS1591
There have been some problems accessing pages on the Apple web site. If the hyperlink gives you a "We're sorry" message, try again. -
I just downloaded Acrobat XI and the addin options is not showing up for Access 2010
I just downloaded Acrobat XI and the addin options is not showing up for Access 2010
Acrobat XI Pro/Standard doesn't support MS Access 2010: http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
Third-party version/ Acrobat Version (ship date)
Acrobat 6
(April 2003)
Acrobat 7 (January 2005)
Acrobat 8
(November 2006)
Acrobat 9 (July 2008)
Acrobat X (November 2010)
Acrobat XI (October 2012)
MS Access
Office 97
x
x
x
x
x
x
Office 2000 (Office 9)
N/A
√
√
x
x
x
Office XP (Office 2002/Office 10)
N/A
√
√
√
x
x
Office 2003 (Office 11) (11/17/03)
N/A
√
√
√
√
x
Office 2007 (Office 12) (11/30/06)
N/A
N/A
√ (8.1)
√
√
x
Office 2010 (Office 14) 32 bit
x
x
x
x
√
x
Office 2013 (Office 15) 32 bit
x
x
x
x
x
x -
The DSLR sequence settings are not showing up for me. (I bought CS6)
Like I said my DSLR sequence settings are not showing up for me even though I bought Premiere Pro CS6, I look for a solution but all that came up was that this happens with a trial verison and I don't know what to do.
Did you buy ONLY PPro, or did you buy a suite?
Did you install the program AND the extra content?
Also... More information needed for someone to help... click these links and provided the requested information
-http://forums.adobe.com/message/4200840
-http://forums.adobe.com/thread/416679 -
Newly Created Branches not showing up for Recruiter in the Requisition.
Hi,
We have created Branches as Administrator and the Branches are not showing up for Recruiter when trying to create the requisition. Any suggestion on this will be great help.
Thanks.Hi,
the most common reason for branches not showing up is caused if someone does not use the frontend for administrator but the IMG nodes for creating branches and assigning to companies. This is caused by missing bp role assignment.
So check the branches in TCODE BP that they have the role for e-recruiting branch assigned. The standard delivey uses bp role RCFBRA but this can be changed in T77S0 RECFA BRARO.
Furthermore you should check if T77RCFBRANCHCOMP entries are ok.
Kind regards
Roman -
Just bought an .OTF font for Flash CS6 and it's not showing up in the list.
Just bought an .OTF font for Flash CS6 and it's not showing up in the list.
EscrowText-Roman.otf
Any reason why? It shows up in Illustrator and Photoshop just fine.
LineIf you have never synced an audiobook yet, you have to connect your ipad and go to the books tab.
Scroll down past the regular books and there will be where you sync your audiobooks.
Then they will show up on the music app under "other" -
Why all my previous downloaded apps (free or paid) suddenly not showing up on the iTunes store "purchased" section. Every time I select "purchased", the next screen shows "no purchased app available for downloaded"?? It is the same on my iphone4 or ipad 2!! Please help!!
Dear Metal Wheels and King Penguin.
I have to actually same problem today 23.10.2012. For an example I have only changed billing methods and have bought hundreds of apps but I remember clearly that I bought for an example ,,Wikipanion Plus'' and ,,OPlayer'' which is now HD OPlayer and I did not see them in purchased items, neither ,,not on ipad/iphone'' nour ,,not on my computer'' and I check in both my computer. I confirm hereby that I took the chance to re-buy these two Apps again through the same account but I got the message ,,As you have bought the previous version on this account you will get this update for free'' so I clicked yes and I got them both. This doesnt only proof that I have purchased them before and purchased items in iTunes Store has some lacks to fix but also it proofs that I also bought them through that specific account as I had to confirm the buying process. In my opnion this is not a thing which Apple should be relaxed with as its very important that powerusers and regular consumers can trust and rely on doing business and to shop via iTunes. I have a lot of expensive Apple Hardware and for me this is a stepping stone and a serious test on the circle of trust. If this cant be fixed I cannot recommend others to trust the store.
Best Regards, davidtryggva -
I have downloaded ADE 3 on my macbook. It did recognize my Aluratek Libre the first time I used it but now it does not. I plug my libre in start ADE and the Libre does not show up for me to transfer my ebooks from the library to my libre. Help pls
If you have iTunes 11 on your computer then you can enable the left-hand sidebar on it via option-command-S on a Mac, control-S on a PC - when connected (and if your computer's iTunes is up-to-date) your iPad should then appear on that sidebar under a 'Devices' heading :
If you select the iPad on that sidebar you can then use the Movies tab on the right-hand side of the iTunes screen to select and sync that film to your iPad's Videos app.
Has your iPad been synced to the computer before ? If not then you might find this page for syncing to a new computer useful : https://discussions.apple.com/docs/DOC-3141
Maybe you are looking for
-
For some websites that I visit every day, it is a pain to have to log in every time. (e.g., Zap2it, which provides TV listings in your local area). However, I like setting Tools/Options/Privacy to keep all cookies until I close Firefox. I would like
-
Raid 0 Failure! XP Pro won't read array on MSI k7T266 pro2 *URGE
Before anything else, thanks for reading and I hope you can help: I have an MSI k7T266 Pro2A-RU motherboard with 512MB of Mushkin RAM, AMD XP 1600+, a Geforce2 MX400, Audigy Soundcard and a cheap PCI NIC card. I consider myself an above average tech
-
How to enable delta in a generic Data Source
Hi, I am developing a Generic Data Source (Z) based on a view. How can i enable it to delta capable... What is the concept of Calanderday......timestamp....pointer How can i make a decesion (what factors do i need to consider) to go for
-
Oil-Slick/Rainbow Ring Stuck on iPad Air Screen
So a few days ago after turning off my iPad Air, I noticed that on the top of the screen it has this rainbow-ring type look on it in an oval shape, about 2 cm in length. The best way I can describe it is when you press your finger a little hard on th
-
How to pass the session_id in the destination URI?
Hi, How can I pass the database session_id (sid) via the destination URI of my navigation button, which I created via personalizations, on a standard Oracle page? I am currently using: OA.jsp?page=/xxxe/oracle/apps/ar/webui/XXXMyPagePG&retainAM=Y. Is