Setting a component visible
Hi,
I have a JButton that is setVisible (false ) when a form is first opened. The button is added to the panel of the form though. The button becomes visible on the press of another button but a small area of the form is blanked out as soon as it becomes visible - a small section under the button in question?
Is there a known bug here? I have 1.3.1_1 because 1.4.2 doesnt compile classes on my PII.
Cheers
Reave
Hi Alex,
I think you are just hitting a Flex limitation, 60+ charts does sound like a lot in one dashboard, what is it you are trying to do and can you not reuse existing ones?
I can't remember where I saw it but someone blogged the other day about Flex in general crawling along with 60+ charts because charts tend to be heavy weight so when you have a lot of them it does not work very well so they were creating a new lightweight chart set instead.
Regards
Matt
Similar Messages
-
Set a component visible based on a value of a LOV
Hi all,
I am using Jdeveloper 11.1.1.2 and ADFBC.
I have a panelFormLayout with some fields.
I have a LOV and I want to set the property visible of a field based on the value of the LOV.
For example: if LOV = First (value =1) field = visible, if LOV = Second (value =1) field = not visible
I have created a backing bean of the page with a method that return a boolean, but I don't know how to get the value of the LOV.
What have I to use? ADFUtils? JSFUtils?
Here there is my code:
public class InsMovimento {
private RichSelectOneChoice soc3;
public void setSoc3(RichSelectOneChoice soc3) {
this.soc3 = soc3;
public RichSelectOneChoice getSoc3() {
return soc3;
public boolean isVisiblePanelLottoEScadenza(){
boolean isVisible = false;
// ... code to retrieve the value of the LOV
return isVisible;
Any suggestions?
Thank you
AndreaHi,
you have 2 options. For both options you need to set autosubmit=true on the LOV field and use the PartialTriggers property on the depedent fields to point to the ID of the LOV. Alo define a value change listener on the LOV field
Option 1: Create a managed bean reference for the LOV using its binding property. Then, call getValue on it to get the component value
Option 2: If the component is bound to ADF, you can read the value fom the ADF binding layer
Option 1 is good to use if for example the "immediate" property on the LOV is set to true so you avoid required field validation problems if the dependent fields have no value though must have one. In this case using a ValueChangeListener on the LOV can be used to read the values, and set the boolean values in the managed bean
Frank -
How to set a value into a component visibility with expression builder?
Hello,
I want to set true/false value into a adf component visibility according to a bean object's value. if the object value is null then visibility value will be false, else visibility is true.
How can I do that without an extra variable definition in the backing bean?
Thanks, AliI think, "visibility = false" is a rendered element, which is not display to the user (like a HiddenField). You should find the element in your HTML-code of your browser. A "rendered = false" element should be not rendered into HTML and not to find in the HTML-code.
Regards
Majo -
How to set the disable,visible property in declarative components.
We have used one declarative component. It consists of 5 buttons (add,delete,save,delete,print). In all of our pages, this declarative component is used. We could bind methods and was able to use each pages seperately (by linking the methods in the backing bean)
But for implementing the DISABLE,VISIBLE properties, we have added the attributes for this and refered this to the corresponding disable and visible property of the button. In the page all these properties where reflected. But at the runtime these buttons are not coming.
Can anyone advise how can we set the disable,visible property in declarative components.Hi vikram ,
i hvnt initialized the properties ,
in my declarative component i have one button say Save button and i want to config 2 properties Disable and Visible
i added two attributes ( java.lang.Boolean ) say disablr_btn ,*visible_btn* and mapped wth the Save button Properties Disabled and Visible using expressions
Now the button is invisible while running the page.
if i remove the mapping from properties Disable and visible , the button is visible
should i init the properties in faces config , i dnt knw hw to init the properties
pls advice -
Component visibility getting delay while drop the component in the Panel
Hi,
In my project I have used drag and drop functionality to drop the Icon from 1st panel to 2nd panel. The 1st panel contains three buttons with different icons and the 2nd panel is added as the destination (Drop place) in the desktop pane. While drag and drop I have used a panel and label to place the icon in the 2nd panel. The icon which is available in the label visibility getting delay(nearly 5 - 10 sec) at the first time drag and drop. After that there is no time delay for the drag and drop. This happens all the time while start my project. I have tried repaint() and revalidate() for all the panels still the delay is there. Kindly suggest any idea to reduce the delay.
Thanks in advance...Component visiblity getting delay while drop the component in the panel in java swing with comment "Kindly suggest any idea to reduce the delay" - A SSCCE by @MadProgrammer
-
How to set scrollbar to visible or invisible?
Dear all,
How to set scrollbar to visible or invisible?
ThanksDuncan's answer will solve your problem
but how will you display scrollbar thru stacked canvas if your block is already in one stacked or tab page canvas
so better to create an item set its background color exactly same as your canvas and make bevel property to null and keep that item where you are displaying scrollbar
and set its visible property to true or false based on your requirement -
Set sap Component mandatory while creating the support desk message
Hi,
When create the support desk message from any application sysytem, the sap component get selected automatically but when we create the suppport desk message from the Easy Access the component wiil be blank, so some user create the support message without giving the component. So we want to make the component as mandatory while createing the support desk message from application system and also set mandatory when we create support message in solman.can anybody help me in setting component mandatory.
Regards
charanDear Charan,
The logic of setting the SAP Component mandatory is explained in the note 640532.
Kindly use the note to resolve the purpose.
Hope this solution helps.
Regards
Amit -
Issue in setting IBASE component of service confirmation item
Hello Experts,
I am facing a problem while creating a service confirmation item with reference to Service order items. I am using CRM_ORDER_MAINTAIN
bapi. Issue is in the Ibase component of the service confirmation items as it is always taking the Ibase component of Confirmation Header even though
i am explicitly passing the Ibase component of service conf item of with IT_SERVICE_OS parameter. I am making sure that i fill up MARKED_OBJECT correctly.
in CRMD_ORDER i can see the Ibase component of header and item both but Header one is the marked as main reference object.
Any idea why Component can not be set explicitly for for service confirmation item.To achieve the above, try the below fix:
var buttonBar:ButtonBar = new ButtonBar();
buttonBar.requireSelection = true;
Hopefully this works for you . Cheers!! -
Setting Logical component for Test Case.
Hello,
I've created test case in SOLAR02 and I want to link my test case to Quality Assurance in my logical component (SAP ECC).How can i set this link? Now the test cases are link to Developement system in SAP ECC. Please tell me how can i fix it.Hi,
If you want to perform the testing in QA client, set your system role as "Quality system" in STWB_2 transaction.
By default, the system role has to come as "Quality system".
If it is not check your transport route of the logical component in t.code SMSY.
Regards
Senthil -
XY Graph-Setting Y-Scale visible to False still Shows Corresponding Y scale Max and Min
Hi Guys,
I use XY graph to display the data with 3 Y-scales.
When I set any Y scale Visiblity property to False,its still display the Y scale Max and Min range Lines in plot area of the Graph and making cross line or extra parralel line with other visible scales.
Attached the screen shot for ref.
And I know the cross line may be due to different Y scales range setting.But XY graph should not display the invisible Y scales and its property as well.
please provide your suggestions to avoid that.
Solved!
Go to Solution.The scales and the lines associated with those scales are separate properties. I have never tried it, and right now I am not at a computer, but there should be properties for setting the grid line colors. Set them to transparent.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Component visibility in the screen,
Hi
I'm facing a problem in the visibility of the component.
My need is to identify the component is in visibility or not.
ex: In a panel, i'm trying to change the location of the label , at a stage the label gets moved to end and the label is not in the screen in display.
How could i know the label is currently showing in view or not..
is there method to identify the label in view or not ??
regards
rathinam.Hi thanks for your reply.
here i pasted the sample program.
let me know the solutions.
For your information, i'm creating a stock ticker component.
package table;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class TickerTesting extends JFrame {
JFrame fTickerFrame;
JPanel fTtickerpanel;
List fArray;
public TickerTesting() {
fTickerFrame = new JFrame( "Ticker" );
fTickerFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
fTickerFrame.setSize( new Dimension( 120, 40 ) );
JPanel panel = new JPanel();
panel.add( new Ticker( ) );
fTickerFrame.getContentPane().add( panel, BorderLayout.CENTER );
fTickerFrame.pack();
fTickerFrame.setVisible( true );
private class Ticker extends JPanel { // private JPanel panel;
private boolean paused;
public Ticker() {
MouseListener listener = new MouseAdapter() {
public void mouseEntered(MouseEvent event) {
paused = true;
public void mouseExited(MouseEvent event) {
paused = false;
addMouseListener( listener );
fTtickerpanel = new JPanel();
fTtickerpanel.addMouseListener( listener );
fTtickerpanel.setPreferredSize(new Dimension(500,50));
final TickerLabel label1 = new TickerLabel();
label1.setText("1 2 3 4 5 6 7 8 9");
fTtickerpanel.add( label1 );
label1.setBackground(Color.RED);
label1.setOpaque(true);
fTtickerpanel.setLocation( 0, 0 );
fTtickerpanel.setBackground(Color.WHITE);
fTtickerpanel.setOpaque(true);
add( fTtickerpanel );
paused = false;
new Thread( new Runnable() {
public void run() {
while ( true ) {
if ( !paused ) {
int x = label1.getX() - 1;
if ( x < -label1.getWidth() ) {
x = getWidth();
label1.setLocation( x, 0 );
try {
Thread.sleep( 20 );
} catch ( InterruptedException exception ) {
exception.printStackTrace();
} ).start();
public Dimension getPreferredSize() {
Dimension preferredSizeOfPanel = fTtickerpanel.getPreferredSize();
return new Dimension( preferredSizeOfPanel.width / 2,
preferredSizeOfPanel.height );
class TickerLabel extends JLabel {
public TickerLabel() {
setForeground( Color.BLUE );
public String toString() {
return getText();
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater( new Runnable() {
public void run() {
new TickerTesting();
} -
Powershell User logon script not Exiting With "Exit" scripts are set to be visible in GPO
I am trying to run this script as a user logon script and it is set to visible to the user. There are other parts of the script but It won't ever Exit. It works fine if I run it directly I only have the trouble when it is in the logon script. I'm thinking
of tryin "Kill -Id $PID" but I'm sure I'll get a bad return code.
Has anyone else experienced this or hav any ideas what I could try?
If (Test-Path U:){
Robocopy U:\ $Destination /E /move /XF "*.inf"
New-Item -Path HKCU:\Software\test\test -Name Test –Force
Else{
Exit
Else{
New-Item -Path HKCU:\Software\test\1 -Name Test1 –Force
Exit #here is where it will not stop!
ExitSorry, I did mention this was only a subset of the complete script.
So, what I am trying to accomplish in words.
1. Check for the existence of a certain folderon the c: Drive (that is created as apart of a different process)
2. Look to see if a registry key exisits that tells the script if it should run or not. So if certain registry key exists under HKCU then don't run if not continue.)
3. The first time a user logs in and does not find the value that the process is allready complete show the user a message box aski9ng them if they are ready to do (something) if not write a registry key saying step one has completed and then quit.
4. When the user logs in again the script looks to see if the process is complete and or if step one is complete, if step one is complete it allows the user to skip the process 2 more times but on the forth login forces the user to complete the process and
writes the final registry key that it is complete.
Like I say I have this all working correctly if I manually have the user run it. I just don't know why Exit is not being recognized when in the users login script processing of the script. I appreciate your reply and any direction you can point me to. -
Sound stops when set flash obj visibility to false on IE
How can I prevent sound from stopping on IE when I set a
flash <object> visibility to false, through javascript ?
i.e.: document.getElementById('flashObj').style.visibility =
'false';
All other web browsers behave normally (they just hide the
player, sound, as the movie, is keep playing on...).
Any ideas?"yduab" <[email protected]> wrote in message
news:e7oua3$hsk$[email protected]..
>I made a flash animation with a backgroung music loop and
buttons. When a
> button is clicked, a video file embeded in a swf plays
in a movieclip on the
> stage. Also, I set the background music volume to 0 as
to listen to the video
> sound. The problem is that when the background music
volume is changed, the
> video plays but the audio changes the same. I tried to
stop the background
> music, and then the video sound also stops!
> Can someone help?
> Here is my code:
> _root.my_sound = new Sound();
> _root.my_sound.attachSound("music.mp3");
> _root.my_sound.start(0,1000);
> }
> _root.["bt_mc"].onPress = function(){
> _root.my_sound.setVolume(0); // or
_root.my_sound.stop();
> _root.videoDisplay.loadMovie(this.videoclip);
//_root.videoDisplay is the
> target mc
> }
To have separate volume levels you have to attach the sound
objects to different movieclips like this..
_root.my_sound = new Sound(one_mc);
The movieclip can be just an empty clip that you make with
createEmptyMovieClip.
tralfaz -
Can't set a component's color!???
Hi,
I can't figure out what I'm doing wrong here:
Scrollbar sb = new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, 255);
this.add(sb);
sb.setBounds(20, 20, 15, 200);
sb.setForeground(Color.BLACK);
sb.setBackground(Color.WHITE);Ok, well that looks perfectly sensible to me, however the scrollbar doesn't diplay with a balck foreground and a white background - it seems to just completely ignore those two lines of code! What on earth is going on? The documentation (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#setForeground(java.awt.Color)) just says " Sets the foreground color of this component". Well, yeah, I figured that it might just do that, but it doesn't seem to!
TIA,
Mike.Judging by the extent of the documentation, the designers don't say anything about what they consider "foreground" to be! I assumed it was the two little arrow bits and the twiddly bit in the middle of the scrollbar, with the background being everything else in the scrollbar. Perhaps it isn't so.
Phrased another way, my question is, "how do I change the color of the arrows and twiddly bit in the scrollbar, and how do I change the color of the rest of the scrollbar?". I am not fond of the drab grey ...
Thanks,
Mike. -
Off set for component requirement in PM order
Dear Experts,
In my PM order, offset date for component requirement date is working only for the first component. for the next component it is taking basic start date( i e order generated date by default) as the requirement date even though i entered offset for some days.
Experts, please explain me how to come out of this problem.
Thanks & Best regards,
PraveenDear Praveen,
Its working Praveen.
Please check this way: 1st operation>double click operation no.>put component>double click item no. of component>now set offset
2nd operation>double click operation no.>put component>double click item no. of component>now set offset
Now suppose you taking two component for same operation then for the second you can have different offset by clicking item no. of that componet.
Please check and let us know again.
Regards,
Kaushal Rai
Maybe you are looking for
-
Can't get iPhoto '09 to work since reverting from iPhoto '11
Ok, I have read and re-read what seem like hundreds of posts (mostly from late 2010) but cannot find an answer to this. I had iPhoto '09 on my computer when I bought it in October, and the "free upgrade disc" for '11 was given to me, but I had never
-
cannot update or install itunes. ger error message RSVCR80 not installed. windows error 126.
-
Incomplete ALSA support for Cirrus Logic CS4206 chip?
Hey gang! First a bit about my system. I'm running the 2.6.35-ARCH kernel on my macbook pro 5,5 which has an HDA NVidia soundcard with a Cirrus Logic CS4206 chip. I have my audio playback working through ALSA (arch packages alsa-lib, alsa-oss, alsa-u
-
Effect of fragmentation in QOS
If the packets are fragmented in ingress and QOS is used, Does the QOS will be maintained after fragmentation. Like in GRE we have QOS pre classify to preserve the bits. regards shivlu jain
-
The system cannot connect to the Application Server
Hello Everybody, I have a problem when connecting to my BPC Application. I get the following error when trying to open BPC: "The system cannot connect to the (http://xxxxxx) Application Server. Verify that you have specified a valid Application serve