JSplitPane probs
Hiya,
I have 2 problems with JSplitPane, here is a screenshot to help explain them:
http://users.pandora.be/lunatic/javaprobs/splitpaneprob.JPG
1) (top right red circle) I add a panel to a panel which is in the splitPane after it is created and shown. The added panel makes the minimum size of that side bigger. Only when I touch the devider it makes sure it is like that.
Called validate on the added panel or the splitPane didn't work.
2) (bottem red circle) I just want to see nothing there, but let that space still act like a devider, so it is like in most applications.
Taking the buttons off the panes that you put in the splitter and place them on their own pane under the split pane would solve the problem of the unwanted splitter down between the buttons. Perhaps add the splitter pane to the CENTER of a border layout and the buttons in the SOUTH position.
Your first problem is more puzzling. Have you tried to create a small sample that illustrates how to get that effect? Sometimes doing that reveals what the problem is other wise you can post it here and we can look at the actual code.
Ian
Similar Messages
-
I got the charger flex or pin changed and now the apps dance on the screen, photos open and zoom in, then out, the other apps open and close. I have already restored the device with Itunes and prob is still there. What can be the problem? Any suggestion will be welcome. Thank you
THANKS for your prompt reply Bluetooth is off in my laptop and IPhone.. and in fact the reset is the only thing that can make it back to normal. But for a lil while. I wonder if it is the touch, or the home botton... both things are very expensive to replace, so I wouldn't like to spend $$ and continue having the prob.....
-
hi iam having prob with the following decode function
declare
c varchar2(20);
begin
select decode(deptno,
10, 'accounting',
20,'Research',
30 ,'sales',
40,'operations','UNKNOWN') into c from dept where loc='DALLAS';
dbms_output.put_line('DEPARTMENT in DALLAS'||c);
select decode(deptno,
10, 'accounting',
20,'Research',
30 ,'sales',
40,'operations','UNKNOWN') into c from dept where loc='INDIA';
dbms_output.put_line('DEPARTMENT IN INDIA'||c);
end;
iam getting no_data_found exception which is reasonable..but what happened to 'unknown' clause in decode function.
thank u
rajivDECODE only works on rows returned from the database. If there are no rows, DECODE has nothing to work on.
Consider:
SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
2 FROM dual;
DECODE(DUMM
Found a row
SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
2 FROM dual
3 WHERE 1=2;
no rows selectedIf you want to have c contain UNKNOWN when there are no rows returned, you need to do something more like:
DECLARE
c VARCHAR2(20);
BEGIN
BEGIN
SELECT DECODE(deptno, 10, 'accounting',
20,'Research',
30 ,'sales',
40,'operations','UNKNOWN')
INTO c
FROM dept
WHERE loc='DALLAS';
EXCEPTION
c := 'UNKNOWN';
END;
DBMS_OUTPUT.Put_Line('DEPARTMENT in DALLAS'||c);
BEGIN
SELECT DECODE(deptno, 10, 'accounting',
20,'Research',
30 ,'sales',
40,'operations','UNKNOWN')
INTO c
FROM dept
WHERE loc='INDIA';
EXCEPTION
c := 'UNKNOWN';
END;
DBMS_OUTPUT.Put_Line('DEPARTMENT IN INDIA'||c);
END;HTH
John -
ISE 1.2 - Multiple NICs/Load Balancing for DHCP Probe
Hello guys
Just prepping an ISE 1.2 patch 8 setup in our organization. I am going for the virtual appliances with multiple NICs. It will be a distributed deployment with 4 x PSNs behind a load balancer and there is no requirement for wireless or guest user at the moment. I've got 2 points I will like to get some guidance on:
Our DC has a dedicated mgmt network and I plan to IP the gig0 interface of the PANs, MNTs and PSNs from this subnet. All device admin, clustering, config replication, etc will be over this interface. However, RADIUS/probe/other user traffic to the ISE PSNs will be over the gig1 interface which will be addressed from another L3 network. Is this a supported configuration in ISE?
I intend to use the DHCP probe as part of device profiling and will ideally like to have just an additional ip helper to add to our switch SVI config. Also, it will appear that WLCs can only be configured for 2 DHCP servers for a given network so another consideration for when we bringing our WLAN in scope. We however use ACE load balancers within our DC and from what I have read, they do not support DHCP load balancing. Are there any workarounds to using the DHCP probe with multiple PSNs without having to add each node as an ip helper/DHCP server on the NADs?
Thanks in advance
SayreHello Sayre-
For Question #1:
Management is restricted to GigabitEthernet 0 and that cannot be changed so you should be good there
You can configure Radius and Profiling to be enabled on other interfaces
Even though you are not using guest services yet, you can dedicate an interface just for that. As a result, you can separate guest traffic completely from your production network
Take a look at this link for more info:
http://www.cisco.com/c/en/us/td/docs/security/ise/1-2/installation_guide/ise_ig/ise_app_c-ports.html
For Question #2
If you are using a Cisco WLC and running code 7.4 and newer you don't need to mess with the IP helper configurations.
The controller can be configured to act as a collector for client profiling and interact with the DHCP thread along with the RADIUS accounting task that is running on the controller. The controller receives a copy of the DHCP request packet sent from the DHCP thread and parses the DHCP packet for two options:
–Option 12—HostName of the client
–Option 60—The Vendor Class Identifier
After this information is gathered from the DHCP_REQUEST packet, a message is formed by the controller with these option fields and is sent to the RADIUS accounting thread, which is in turn transmitted to the ISE in the form of an interim accounting message.
Both DHCP and HTTP profiling settings are located under the "Advanced" configuration tab in the WLC
On the other hand, you can also use Anycast for profiling. You can check out some of Cisco Live's sessions for more info on that. Here is one that is from a couple of years (There are more recent ones that are available as well):
http://www.alcatron.net/Cisco%20Live%202013%20Melbourne/Cisco%20Live%20Content/Security/BRKSEC-3040%20%20Advanced%20ISE%20and%20Secure%20Access%20Deployment.pdf
I hope this helps!
Thank you for rating helpful posts! -
How to capture the event in driver JSplitPane
Hi all, i have some problem with the JSplitPane.
What i want to do is that:
i need to capture the event throw when the user press the button in the driver of the JSplitPane, this is because i want to know wich side of the splitpane is complet visible.
Thanks for your time!
LucaI thought I would do up an example just for fun. As you drag the splitter bar the size of the two components and the splitter component is reported to the console along with the divider location. Interestinly, on my system (Windows XP, Java 1.41_02) when you move the bar downwards the divider location is consistantly two pixels past the height of the top component but when you drag the bar upwards the divider location and the height of the top component are the same.
Does anyone have any ideas why that would be?
Here is the test app:package splitPaneMonitor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
public class SplitPaneFrame extends JFrame implements PropertyChangeListener {
public SplitPaneFrame() {
super ("Split pane test");
// Create the components to show in the split pane
myTopComponent = new JTextArea ("This is the top component", 10, 40);
myBottomComponent = new JTextArea ("This is the bottom component", 15, 40);
// Create the split pane
mySplitter = new JSplitPane (JSplitPane.VERTICAL_SPLIT , true, myTopComponent, myBottomComponent);
mySplitter.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, this);
getContentPane ().setLayout(new BorderLayout ());
getContentPane ().add (mySplitter, BorderLayout.CENTER);
public void propertyChange (PropertyChangeEvent evt) {
if (evt.getPropertyName () == JSplitPane.DIVIDER_LOCATION_PROPERTY) {
System.out.println ("Split pane divider moved");
Dimension size = myTopComponent.getSize ();
System.out.println (" The top component's size is: " + size.height +" h, "+ size.width + " w");
myBottomComponent.getSize (size);
System.out.println (" The bottom component's size is: " + size.height +" h, "+ size.width + " w");
mySplitter.getSize (size);
System.out.println (" The splitter's size is: " + size.height +" h, "+ size.width + " w");
System.out.println (" The splitter divider location is: " + mySplitter.getDividerLocation ());
private JTextArea myTopComponent;
private JTextArea myBottomComponent;
private JSplitPane mySplitter;
public static void main(String[] args) {
SplitPaneFrame appFrame = new SplitPaneFrame ();
appFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
appFrame.pack();
appFrame.setVisible (true);
} -
I'm try to buy a movie from iTunes with my I pad 3 and it tells me there is not enough local storage and when I go to my local storage there is a lot on free storage I also restarted my ipad but still the same prob what do I do?
5GB is typically not enough space to download a movie. Often, movies take from 3 - 5 GB to begin with. The only option you have is to delete more things from your iPad. You can remove unused Apps, pictures, music, text message (messages with pictures can take up a lot of space), email messages, books, magazines etc.
-
Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help
Your above posted system details show outdated plugin(s) with known security and stability risks.
*Shockwave Flash 9.0 r999
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/
In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
http://java.com/en/download/faq/firefox_newplugin.xml
See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html -
Prob. with iTunes, Phone won't shut off. Tks.
3GS with 6.1.3 Prob. with iTunes. When I want to close out of iTunes after a Podcast the App will not close out when I hit Home. All other Apps shut down, only prob. is with iTunes. Cant turn phone off goes back ti iTunes when turned on again. Tks.
I hope the previous replies are wrong. It was my understanding that even when Match is turned off in iTunes, music previously matched or uploaded to iCloud will stay there, associated with my Apple ID, even through a cold boot etc. If you want to remove songs from iCloud, but keep them locally, do this:
1. Click "Store" in the iTunes top Menu
2. Select "Turn on iTunes Match" (if it isn't already turned on)
3. Close iTunes.
4. Hold down the Shift key while you open iTunes - this will prompt you to choose or create a (new, locally empty) Library in a different folder from your main Library.
5. Now you should see ONLY music that is stored in iCloud.
6. Delete them all. iTunes will show a checkbox or button for you to click to delete the selected items from iCloud.
7. Turn off iTunes Match (see #1)
8. Restart iTunes with the Shift key again, so you can get back to your main Library - with Match turned off. -
Prob with iTunes on Vista! Please Help!
hi guys,
i am getting the following error message when i install iTunes 7.5 version
[IMG]http://img403.imageshack.us/img403/8344/itunesprobbo9.jpg[/IMG]
i also tried iTunes 7.4 version but i am getting the same error message
iTunes used to work before, but suddenly the prob
i tried unistalling and installing the app again but in vain...
Please Help!
Thanks in advance!
-Manish“iTunes.exe – Bad Image” ... “C:\Windows\system32\mssip32.dll is either not designed to run on Windows or it contains an error. Try installing the program using the original installation media or contact our system administrator or the software vendor for support.”
Okay. Literally, it's saying that one of the dlls associated with Cryptographic Services on the PC is damaged. That can cause an iTunes launch failure.
... However, most of our experience here at Discussions is with troubleshooting these sorts of messages on Windows XP systems, rather than Vista and I don't have a Vista box handy for reference.
So, if you don't receive any further replies here, it might be best to try posting instead at the Windows Vista Community Discussions Groups. Fingers crossed someone there might be better placed to help you troubleshoot this:
http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx
(Not trying to get rid of you here, just trying to get you on the radar screens of people who might be in a better position to help.) -
Telegraph app does not allow access to newspaper. Says. Have not paid sub but pay via iTunes Store. Telegraph says it is an iTunes prob but I can't get to talk to anyone there! Any suggestions please?
Just got this -
Dear iTunes Customer,
You recently received an email informing you that your iTunes Match Subscription could not be auto-renewed. We have resolved the problem and your iTunes Match Subscription has been renewed.
We apologize for the delay with your auto-renewal. If you have any questions, please contact AppleCare at http://www.apple.com/support/itunes/
I hope everyone else is all set too. -
hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.
I am having the same problem. I have just tried this. Unplug iphone > open itunes > delete all music from itunes library > close itunes > re-open itunes > add music from original folder > plug in iphone > select songs > press sync > unplug iphone using eject button onscreen > checked phone .... still nothing in music folder on phone. On itunes the "On this iphone" tab the songs remain there but greyed out.
-
itunes in my laptop is not showing my iphone5 (7.0.4) but it has no problem wat so ever showing in another laptop...and my laptop has no prob showing other iphones
Hi siva samba,
If you are having issues with your iPhone not being recognized in iTunes, you may find one of the following articles helpful:
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
iOS: Device not recognized in iTunes for Mac OS X
http://support.apple.com/kb/TS1591
Regards,
- Brenden -
iTunes took back my entire library to force me to subscribe to Cloud, but now it will not re-download all of my purchases, and the Cloud also seems to want to wipe my iPad (has done it twice). 2 hours on the phone with Apple no help. Anyone w/same prob?
I guess I should have been more clear. One morning (5 days ago now) we realized that our complete itunes library was gone--all media (music, shows, movies, podcasts) was gone and could not be located on our hard drive. When I went onto itunes under the "help" section there was a comment that you could upgrade your itunes to Cloud and then access all your purchases and either re-download them or play them from the itunes page. So, I upgraded itunes and went about accessing all my purchases(thousands of dollars worth of media--so you can imagine my stress). Meanwhile, my husband was at work with his ipad and realized that everything was gone--all his apps, music, even apps for work that were downloaded at his work. Completely gone. I told him that I had found everything on Cloud and that he could probably just re-download everything when he got home but we both agreed it was weird. When he got home he noted that only about 1/3rd of our purchases were available on the Cloud website--all of my son's shows were still not there and many albums that we had bought over the last year were still missing. My husband called Apple yesterday and spent two hours on the phone with them. He said it was all very mysterious as they would not admit or deny anything and he said that he spoke with several people that were very ambiguous about what had happened and were careful about what they said. They agreed to re-release to us all of the media that we could not access on Cloud, but that they could not provide us with media that had copyright expired. They basically said it was our fault for not backing everything up on a separate system. While we explained that we do have a back up hard drive, we don't back up every time we make a purchase--so we haven't done so for several months. Then, this morning my husband was on his ipad and a message popped up that froze the ipad and it said that he needed to sync into itunes. He did so and then when he went back to unplug to go to work he realized everything was gone again! All his apps, music, everything. He was so upset because he saw no reason why this keeps happening.....Any thoughts??
-
ITunes/Outlook 2007/ Windows 7 sync prob
Outlook 2007 sync issue with iTunes 10.4.0.80 on Windows 7. This config has been working ok syncing with outlook calendar and contacts. All of a sudden iTunes no longer sees outlook as an option for syncing under 'info' and the contact/calendar syncing has stopped working. The checkbox works but the drop down box next to 'Sync contacts with...' is empty. I have made sure the itunes addin for outlook is working. I have tried uninstalling itunes as per HT1923 and reinstalled but no good. I have tried reinstalling outlook but again not progress.
Any ideas?
The only thing I have done is some HD partition maintenace (to recover some unused space from an OEM recovery partition) which I can't see would be related as all other software still works perfectly.Hi.
Lots of people have viewed my prob but no suggestions. Guess this is indication of extent of iTunes probs!! Anyway, for anyone in same situation I have just found the solution:
1. Close iTunes down
2. Navigate to C:/Users/{YOUR ACCOUNT}/AppData/Roaming/Apple Computer/
3. Remove the contents of /SyncServices/
4. Start iTunes
5. Connect iPhone
Hope this helps someone in future! -
hi all,
I hav prob in alv report .I made a purchse register alv report.when I see output it show's everything right but in printpreiew and when transfer to spreadsheet. It cut's back part of voucher number.for ex.v.no :5100021 but see in print priew itshow's like this 51000... and in excel sheet it cut down the last no. so it creates rundancy of voucher no. plz tell me sol. I don't know wat is happening.
regards,
hemlatahi hemlata.
you can do this for the voucher number in your fieldcat.
give the outputlen as the maximum outputlength of the voucher no.
fieldcat-fieldname = 'VOUCHER'.
fieldcat-...
<b>fieldcat-NO_ZERO = 'X'.</b>
append fieldcat to it_fieldcat.
and now check it.
Regards
vijay
Maybe you are looking for
-
Error during Document Check IN and Conversion to PDF from IBR
Hi All I am getting the following error when i trying to check in a document of 21 Mb Refinery Logs : The post converted queue for agent 'idc' states that Content ID 'SPECAPI5' converted but the converted primary webviewable file was not found. Excep
-
WebDynpro development vs. ports and IE security settings?
Hi! We have Sapgui running in a Citrix server and its hosted there for multiple developers. The backend they access is SRM where they need to do WebDynpro development work. Problem is that when going to the WebDynpro editor screen and choosing the la
-
DLSW ethernet redundancy for multiple vlans
Can dlsw ethernet redundancy support mutliple vlans with the following configuration? host dlsw router1 host dlsw router2 | | local dlsw router 1 local dlsw router2 | | ethernet switch1-------ethernet switch2 Ethernet switch1 and 2 are supporting mul
-
How to avoid duplicate displaying a chart in a list
I am displaying a chart in a list. Most of them work fine but I have one or 2 recordset displaying split duplicate charts in the list. how do I combine this into one or eliminate duplicate charts
-
Data stream from OEM device, TCP/IP "not enough memory"
Hi Everyone, I'm trying to catch a data stream from an OEM device over a TCP/IP link. I can start the data stream, or pause/resume it, but the OEM device determines when the data stream has ended. The data stream begins, and within 20 seconds, I ge