Overriding paintComponent() for jInternalFrame to provide transparency
I am using NetBeans and Swing and have already created a working program. Within the form of the program I have an InternalFrame which consists of a scatterplot on top of a map - the scatterplot consists of pollen data for a selected week which is overlayed on the map. The user is able to select different weeks and thus the scatterplot is updated to reflect this. What I am trying to do is use Java2D and semi-transparency to make the transitions between the scatterplots changing look better i.e. fade out with the old and fade in with the new once the user selects a different week. From a little a research I have reason to believe overriding the paintComponent() for an InternalFrame with something like what is below would be the answer but I am failing miserably, can anyone help? Thanks.
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));
super.paintComponents(g2);
g2.dispose();
}
Hi,
You may need to set the setOpaque(false) for the JIF content pane.
Quick refer the links below:
[http://coding.derkeiler.com/Archive/Java/comp.lang.java.gui/2006-05/msg00254.html|http://coding.derkeiler.com/Archive/Java/comp.lang.java.gui/2006-05/msg00254.html]
[http://forums.sun.com/thread.jspa?threadID=469200&tstart=10186|http://forums.sun.com/thread.jspa?threadID=469200&tstart=10186]
[http://www.coderanch.com/t/344772/Swing-AWT-SWT-JFace/java/Transparent-JInternalFrame|http://www.coderanch.com/t/344772/Swing-AWT-SWT-JFace/java/Transparent-JInternalFrame]
Similar Messages
-
Overriding paint for customizing JButton??? Shouldn't be paintComponent?
Hi
Shouldn't we always override paintComponent to customize the painting of a component?
Why MetalScrollButton in javax.swing.plaf.Metal overrides paint instead of paintComponent?
Should I override paint if I want to write my own LnF?
Thanks.As is said in the online doc about paint(), "This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent."
That means you can override paint(), , but in this case you'll have to draw the border yourself... and if you have a composite custom component (a panel containing labels, for example), you will have to call the label's paintComponent() methods by yourself...
Hope this helped,
Regards -
Manual override option for Unit selling price in Order line level.
In OM R-12
Our client wants manual override option for Unit selling price in Order line level.
But there is no solution available to fulfill this requirment. To be able to manually override the price on a Sales Order line you
must have defined a manual modifier that qualifies for the Sales Order line in question. Without a suitable manual modifier the price cannot be changed.
This is current standard functionality.
Anybody can give some suggestion/workaround to override selling price in Order header level without using the modifiers.
regards,Hi Kashif,
I'm finding it little difficult to buy Oracle Support's feedback with regards to R12 functionality for direct List Price update without using any modifier (manual or whatever). After all it is Oracle's product and they should know better. But test results in Solution Beacon's Vision 12.0.6 instance (http://www.solutionbeacon.com/tools_r12vision.htm) and documentation updates in R12 (R12.0.4) OM user guide & implementation manuals potray a different picture.
After your last post, I did a test in Solution Beacon's Vision 12.0.6 instance with following details:
OM: List Price Override Privilege = "Unlimited Access" at user level
OM: Discounting Privileges = "None" at user level
No manual modifiers defined and Order status = "Entered"
I could display the "List Price" field from folder under Line Items >> Main tab, override the list price to a new value and save. The unit selling price showed the new value based on updated List Price as soon as I tabbed out of the list price field after overriding. After saving it showed the new selling price. _Please note that under Line Items >> Pricing tab there is another "List Price" field and that is not editable_. For such overrides "View Adjustments" (from Line >> Actions) will not show any adjustment details as it is a direct update of list price.
Also please note that, if "Enforce List Price" checkbox is selected for the order type, the list price cannot be overridden even if the profile option is set to "Unlimited Access".
Document References:
Oracle® Order Management User's Guide
Release 12, Part No. B28099-03, September 2007 >> R12.0.4
Page No. 10-74
+Note: Note: If any order line for an order has the Calculate Price Flag value equal to Partial Price or Freeze Price new order level adjustments will not be applied or allowed to be overridden. _The profile option OM: List Price Override Privilege controls your ability to override the unit list price. If you have this profile set to Unlimited, you may modify the unit list price by editing the current value displayed_. The original list price is saved in a hidden folder field, so you can display it if necessary+.
Page No. 10-94
User Procedures
_A new profile option, OM: List Price Override Privilege controls whether or not you can update the List Price_. It is enabled and updated at the application, responsibility and user level. It is not user visible and updatable. The values include+:
- View Only: This is the default value. If set to this value, the current behavior is retained, which means unit list price field is protected.
- Unlimited Privilege: If set to this value, you can override the unit list price field from the main tab and immediately see selling price adjusted accordingly.
To use Override List Price:
+1. Navigate to the Sales Orders/Quick Sales Orders window.+
+2. Enter the header and line information, including the ordered item and quantity, then tab to the next field. The Selling Price and List Price display+.
+3. If the profile is set to Unlimited Privilege, you can enter a new list price in the List Price field. You can either proceed to the next line or save your work+.
+4. You can see the new, entered list price, and if there are automatic discounts applied, they will be based on the new list price+.
+5. If the folder has been modified to show the Original List Price, the original list price displays+.
+6. To change the List Price again, go to the list price field and enter a new value, replacing a previously entered value. If Audit Trail is enabled for List Price and a reason is required, a window appears to enter a reason and optional comments+.
Note: Subsequent overrides of the List Price, after the order line is saved, can be captured by Audit Trail, depending on the setup of Audit Trail (entered or booked state) and any processing constraints that have been set up.
In the OM Implementation Manual also there are notes related to this.
OM Implementation Manual
Release 12, Part No. B25975-03, September 2007 >> R12.0.4
You can refer to page no. 2-59, C-4 etc.
Thanks
Supro -
Upgrade Fee? Is it time for a new provider?
The new upgrade fee is a bit ridiculous. Verizon is by far the most expensive provider available.
Is it time to start searching for a new provider?Hmmmm, sounds like a challenge. I live in a metro area so I know there are many providers to choose from. I have many friends who get excellent service from smaller providers. Last time I checked it's not 2003 and mobile phone tower usage is leased to providers not owned. There are probably plenty of service providers who are champing-at-the-bit to sign up ex-Verizon customers. I will do some research and let you guys know what I find.
Just to note, part of the reason cell phone makers charge so much for their phones is because of subsidies. Do you really think people would switch to next crapple iphone 7 if they actually had to pay $800 bucks for it? Apple, samsung, Nokia, ect. would have to drop their prices in order to maintain profit if service providers didn't use the phones to entice people to sign up for their price gouging scheme. Lucky for us we live in a free market so we can vote with our pocket book. I assume you probably work for Verizon so you may not be switching, but if enough people change their provider Verizon will start to feel the affect. Remember when Cingular used to exist? -
I am facing this problem while start debugging the Provider-Hosted app through VS2013. I want to deploy the app with same version. So please let me know any solution
to remove the app instance from office365 online, so that I can deploy the same app with same version on the specified "Developer Site".
Note: If I change the version in AppManifesst.xml file then this problem/error gets resolved. But I want to deploy with the same version as
per my business requirement.
The actual error renders while I click to "Start" button of the Visual Studio 2013 to deploy the provider-hosted app, for the sake
to deploying it on say "ABC" site collection (i.e. developer site). I work on office365 online. Therefore, request you to please provide the solution for SharePoint online office 365. The occurrences is:
"Error occurred in deployment step 'Install app for SharePoint': The provided App differs from another App with the
same version and product ID."
Please assist me anyone. It will be so kind of you.....
Naveen Kumar
Steria India Ltd.Did you updated the AppManifest.xml file
and change the version.
If this helped you resolve your issue, please mark it Answered -
Can you Please Tell Me the Process for service/operation provide by one plant to other plant.
In My Company No Of Plants Like 1000,2000,3000,4000
Plant 1000 Provide the service/operation like (welding ,cutting, painting ) to other plants (eg 2000,3000,4000)
We want to give the profit for plant 1000 and book the service or operation charge in plant 2000 or 3000.
We don’t want to use material code in this process.
Can you help me it is possible or not through SAP PP.Krishnendu,
Actually in my company we have one plant 1000 that plant provide the service like (CUTTING (SHAFT),WELDING,MACHINING,PAINTING)
actually plant already made one material xyz and supply 2000 plant .
we can use STO in this scenario and set special procurement key 80.
But my requirement is after some time plant 1000 provide few operation in xyz material that material already supply to 2000 plant.
in this case we dont use to produce any material. -
Hello, is there a way for making a photo transparent with iPhoto are another software?
Hello, is there a way for making a photo transparent with iPhoto are another software?
Not with iPhoto, but different apps have different capabilities.
There are a couple of considerations: How is this transparent image to be used? In a Deskop Publishing environment something like Pages' Instant Alpha might be useful. Or if you're trying to overlay one image on another on a photograph then some editor that supports layers would be required.
Further, Jpegs as a format doesn't support transparency so you'll need to work ina file format that does.
But if you can explain what you're hoping to do we might be able to point you in a more useful direction.
In order of price here are some suggestions for editors:
Seashore (free)
The Gimp (free)
Graphic Coverter ($45 approx)
Acorn ($50 approx)
Pixelmator ($50 approx)
Photoshop Elements ($75 approx)
There are many, many other options. Search on MacUpdate or the App Store.
You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto. -
WLC Applying cached RADIUS Override values for mobile
Hello!
We have a WiSM2 (version 7.4.110.0) with approx 200 APs. We are doing RADIUS authentication via a PacketFence backend. Everything usually works fine, but we are having an intermittent issue...
The WiSM2 gets its VLAN assignment for a client from the PacketFence server and does AAA override. If a client has not registered their device, go on one VLAN. Once they register, PacketFence disconnects them via RADIUS to the WiSM2, and then they should get their new VLAN assignment. This works fine in the majority of cases, but occasionally, after registering, the client disconnects and reconnects but is still put back on registration VLAN.
debug client mac shows this in the logs:
Applying cached RADIUS Override values for mobile 00:25:56:3d:f6:7b (caller pem_api.c:2210)
And I do not see the WiSM2 asking the PacketFence server for a VLAN assignment in the PacketFence logs.
Eventually, if the client stays disconnected long enough (5+ minutes), they can reconnect and get the proper VLAN assignment. I had previously opened a TAC about this, and they suggested a WiSM2 software upgrade and setting the Session Timeout on the WLAN to 900 seconds, which I did. This issue then disappeared for several weeks, but it has started happening again today (we saw it happen to about 15 clients throughout the day).
Anyone have any ideas on why this is happening, and how to stop the caching? Any thoughts would be greatly appreciated.
Here is the output from a show wlan of one of our WLANs we have seen this on:
WLAN Identifier.................................. 2
Profile Name..................................... BlitzNet
Network Name (SSID).............................. BlitzNet
Status........................................... Enabled
MAC Filtering.................................... Enabled
Broadcast SSID................................... Enabled
AAA Policy Override.............................. Enabled
Network Admission Control
Client Profiling Status ....................... Disabled
DHCP ......................................... Disabled
HTTP ......................................... Disabled
Radius-NAC State............................... Disabled
SNMP-NAC State................................. Disabled
Quarantine VLAN................................ 0
Maximum number of Associated Clients............. 0
Maximum number of Clients per AP Radio........... 200
Number of Active Clients......................... 538
Exclusionlist Timeout............................ 60 seconds
Session Timeout.................................. 900 seconds
User Idle Timeout................................ 300 seconds
User Idle Threshold.............................. 0 Bytes
NAS-identifier................................... WISM2_SDC
CHD per WLAN..................................... Enabled
Webauth DHCP exclusion........................... Disabled
Interface........................................ blitznet
Multicast Interface.............................. Not Configured
WLAN IPv4 ACL.................................... unconfigured
WLAN IPv6 ACL.................................... unconfigured
mDNS Status...................................... Disabled
mDNS Profile Name................................ unconfigured
DHCP Server...................................... Default
DHCP Address Assignment Required................. Disabled
Static IP client tunneling....................... Disabled
PMIPv6 Mobility Type............................. none
Quality of Service............................... Silver
Per-SSID Rate Limits............................. Upstream Downstream
Average Data Rate................................ 0 0
Average Realtime Data Rate....................... 0 0
Burst Data Rate.................................. 0 0
Burst Realtime Data Rate......................... 0 0
Per-Client Rate Limits........................... Upstream Downstream
Average Data Rate................................ 0 0
Average Realtime Data Rate....................... 0 0
Burst Data Rate.................................. 0 0
Burst Realtime Data Rate......................... 0 0
Scan Defer Priority.............................. 4,5,6
Scan Defer Time.................................. 100 milliseconds
WMM.............................................. Allowed
WMM UAPSD Compliant Client Support............... Disabled
Media Stream Multicast-direct.................... Disabled
CCX - AironetIe Support.......................... Enabled
CCX - Gratuitous ProbeResponse (GPR)............. Disabled
CCX - Diagnostics Channel Capability............. Disabled
Dot11-Phone Mode (7920).......................... Disabled
Wired Protocol................................... None
Passive Client Feature........................... Disabled
Peer-to-Peer Blocking Action..................... Drop
Radio Policy..................................... All
DTIM period for 802.11a radio.................... 1
DTIM period for 802.11b radio.................... 1
Radius Servers
Authentication................................ ipofradiusserver 1812
Accounting.................................... Global Servers
Interim Update............................. Disabled
Dynamic Interface............................. Disabled
Dynamic Interface Priority.................... wlan
Local EAP Authentication......................... Disabled
Security
802.11 Authentication:........................ Open System
FT Support.................................... Disabled
Static WEP Keys............................... Disabled
802.1X........................................ Disabled
Wi-Fi Protected Access (WPA/WPA2)............. Disabled
WAPI.......................................... Disabled
Wi-Fi Direct policy configured................ Disabled
EAP-Passthrough............................... Disabled
CKIP ......................................... Disabled
Web Based Authentication...................... Disabled
Web-Passthrough............................... Disabled
Conditional Web Redirect...................... Disabled
Splash-Page Web Redirect...................... Disabled
Auto Anchor................................... Disabled
FlexConnect Local Switching................... Disabled
flexconnect Central Dhcp Flag................. Disabled
flexconnect nat-pat Flag...................... Disabled
flexconnect Dns Override Flag................. Disabled
FlexConnect Vlan based Central Switching ..... Disabled
FlexConnect Local Authentication.............. Disabled
FlexConnect Learn IP Address.................. Disabled
Client MFP.................................... Optional but inactive (WPA2 not configured)
PMF........................................... Disabled
PMF Association Comeback Time................. 1
PMF SA Query RetryTimeout..................... 200
Tkip MIC Countermeasure Hold-down Timer....... 60
AVC Visibilty.................................... Disabled
AVC Profile Name................................. None
Flow Monitor Name................................ None
Call Snooping.................................... Disabled
Roamed Call Re-Anchor Policy..................... Disabled
SIP CAC Fail Send-486-Busy Policy................ Enabled
SIP CAC Fail Send Dis-Association Policy......... Disabled
KTS based CAC Policy............................. Disabled
Assisted Roaming Prediction Optimization......... Disabled
802.11k Neighbor List............................ Disabled
802.11k Neighbor List Dual Band.................. Disabled
Band Select...................................... Disabled
Load Balancing................................... Disabled
Multicast Buffer................................. Disabled
Mobility Anchor List
WLAN ID IP Address Status
802.11u........................................ Disabled
MSAP Services.................................. DisabledThere is nothing in the RADIUS server logs. It is as if the WiSM2 does not talk to it for the 2nd request. The flow for a problem client is like this:
1. New client associates
2. WiSM asks RADIUS server for VLAN
3. RADIUS Server hasn't seen it, so it puts it on VLAN 84 (our registration VLAN)
4. Client goes through captive portal
5. RADIUS server sends disconnect client message to WiSM
6. Client disconnects, reconnects
7. WiSM2 puts it back on VLAN 84, when it should put it on a VLAN determined by the SSID. The WiSM2 never asks the RADIUS server for the VLAN again, until the client has stayed disconnected for 5+ minutes, and I see the message in the wism2 log that I wrote above.
In the vast majority of cases, step 7 works properly. That is, when the client reconnects, it asks the RADIUS server what VLAN to put it on (I see it in the RADIUS server logs). I see the second request come in, and the RADIUS server replies with appropriate VLAN for the SSID.
After they get their proper VLAN, this doesn't occur again. It is as if the RADIUS server caches the client's VLAN override attribute somewhere and uses that, rather than asking the RADIUS server. -
Moving to Australia. Will my iphone be able to work there for an Australian provider?
moving to Australia. Will my iphone be able to work there for an Australian provider?
Your iPhone will work there even if you keep your current US carrier. However, you'll get hit with the high international charges.
If you want a local carrier you have to have an unlocked iPhone. If you do not have one they are easy to busy as the Aussie's require an unlocked option on mobiles unlike the US.
One word of advice. If you plan on getting a land line in your home or cable TV. Look to the same carrier for both your iPhone and land line. Aussie mobile charges are different than what you are use to in the states. You will have to a lot of reading between Aussie carriers to see which plan you want. Getting the wrong plan can be costly.
All Aussie carriers that offer land lines do not charge if you are calling someone with the same carrier. If you have OPTUS then anyone with OPTUS means no charge, it's free except if you have the wrong text message plan. Call from OPTUS to Virgin and you'll get hit with charges.
Confusing I know.
Mike -
When I iconify my JInternalFrames, they get this not-so-hot looking
default icon which isn't suitable for my application.
Question:
How can I choose my own icon for JInternalFrames?
(I still want to be able to iconify windows - just replace the default
icon with icons of my own.)JInternalFrames normally get the same icon which their
parent (JDesktopPane) has.
We have one application with JInternalFrames and their
icon remain the same when they get minimzed.
Your icons change when you minimize the
InternalFrames?I get the default icon, which you too have - but I dont want it!
I want to replace it with my own... -
i need safari 5 to update safari 4.02 for new email provider have leopard on a g5 powermac can only find 5.1 download for snow leopard is 5 still available
Click here for it.
(59866) -
Question about the Filter type for the trace provide "Microsoft-Windows-Kernel-File"
Hello all,
I have moved this question from the Windows
Server General Forum accorfing to the suggestion from Mr. Justin Gu
I have a question about the Filter function for the trace provider "Microsoft-Windows-Kernel-File".
I can find the Filter function with the following operation.
Mr. Justin Gu wrote:
> You create a Data Collector Set for the trace provider "Microsoft-Windows-Kernel-File" and finish completely, then you > can right click it and select Properties.
In the Properties dialog box, click Filter and
then select ‘Edit…’. You will be> able
to see the Filter type and Filter data in the Filter dialog box.
What
Kind of Filter can
I use in this Filter dialog box?
And, how can I set to exclude the some kind of datas?
Could you give me your suggestion?
Thank you.What
Kind of Filter can
I use in this Filter dialog box?
And, how can I set to exclude the some kind of datas?
Could you give me your suggestion?
Thank you.
I'm looking for the same information. -
Configuration file for pkcs11 security provider
Hi all,
I'm using Mandriva 2008.0 . In the jdk 1.5.0 documentation, it is given that, the security provider pkcs11 can be configured statically by adding an entry, as shown below, in the java.security file present in the directory jre/lib/security/.
*# configuration for security providers 1-6 ommitted*
security.provider.7=sun.security.pkcs11.SunPKCS11 /opt/bar/cfg/pkcs11.cfg
Where can I get the configuration file (pkcs11.cfg) from? Please direct me how to proceed.
Thanks.Hi,
I went through that Java SE6 documentation link. It describes the contents of the configuration file for pkcs11. But I couldn't find the information of where can I get the configuration file for pkcs11 security provider from.
Thanks. -
Does Kinect for Windows V2 provide facial recognition API? Thanks
Does Kinect for Windows V2 provide facial recognition API? Thanks
For facial recognition with the Kinect, you can use the Developer Toolkit (v1.5.1). The API for the FaceTracking tools can be found
here: http://msdn.microsoft.com/en-us/library/jj130970.aspx.
You can also refer: How
To: Kinect for Windows SDK Face Recognition Series
Facial Recognition with Kinect
Kinect
for Windows: SDK and Runtime version 1.5 Released
As mentioned in the article: Kinect for Windows:
Frequently asked questions
Does Kinect for Windows SDK offer facial recognition capabilities?
Since version 1.5, the Kinect for Windows SDK and toolkit have supported real-time face tracking. Face tracking is not intended for facial recognition or identification. Face tracking detects and tracks the positions and orientations of faces in real time and
provides animated three-dimensional (3D) meshes that are positioned in 3D over the Kinect depth sensor data. Face tracking can animate, in real time, eyebrow positions and mouth shape, as well as provide a high-resolution 3D mesh of the face than can be animated.
With the SDK 2.0, Kinect can also track whether eyes are open or closed, the position of the nose, facial expressions, and the direction the face is pointing. The resolution of the tracked face has been increased by 20 times with a 1,360-point mesh, so that
faces look more realistic. Conventional face-recognition algorithms can be used with the Kinect for Windows sensor’s RGB stream; we continue to investigate how the Kinect for Windows sensor's extra capabilities can be used.
For more details you can Ask a Question @ Kinect
for Windows v2 SDK
Rachit
Please mark as answer or vote as helpful if my reply does -
The business requires the ability for client to provide a remittance file detailing what invoices the single payment is to be applied to.
hi the requirement is we have 10000 sales orders for this sales orders only one invoice is created when customer pays the money to this invoice(multiple line items in this single invoice) the remittance file should get that what invoices that single payment is applied toUm, well looky here :)
https://social.technet.microsoft.com/Forums/windowsserver/en-US/cf6abdeb-a517-424c-bbef-050bee22a658/remoteapp-error-when-launching-dashboard-from-client-pc?forum=winserveressentials
Grey
PS: Has nothing to do with the price of eggs, but interesting ?
http://www.windowsnetworking.com/articles-tutorials/netgeneral/host-remoteapps-windows-pcs-part1.html
Maybe you are looking for
-
Audigy 2 Value with Windows Vista 32-
I have a situation where I have the beta driver working for my Audigy 2 Value but Windows does not give me a choice to select a 7. setup. It only allows a mono and 2 channel setup. With the Creative program that came with the driver I was able to sel
-
CJ88 Cannot proceed with FUL settlement to Final asset
We have a PO with WBS as account assignment. Users posted a down payment to this PO in 12/2010 and when they ran the settlement Type 1 (Automatic) it posted a DP posting to the AUC transaction type 180. In Standard SAP transaction, this will get reve
-
How can I view native code in Java?
I am trying to write a program to find the log of a number. I looked for Java's implementation in Math.log(x), but it is a native method. How can I see the code in the other language(C or C++)? I have looked at JNI, but i don't think it is what i nee
-
Hi All, I am trying to connect to an SFTP server on unix and pick up a file. I have done all the connection settings as per the documentation in oc4j-ra.xml and i have also made sure the hostname and port are correct. But when im trying to connect be
-
OAI Event is not reading the workflow queue
I'm creating the workflow event using iStudio (created automatically by iStudio) with the following information: Item Type: OAI Process Bundle: EDWARD Internal Name: I_EDWARD_PAATRANSACTION_OAI_V1 Display Name: Receive Request EDWARD.PAATransaction:I