components

How to disable all components in a JPanel

扶醉桌前 提交于 2019-12-28 07:01:07
问题 In my JPanel I have many components, including other JPanels, JLabels, JTextAreas, and JButtons. Becuase I want to implement a tutorial mode where another window appears and everything in my main JPanel is disabled as the new window explains each 'feature' one by one... I want a to know how to disable all the components that are inside my origiinal JPanel. I know you can use: component.setEnabled(false); But I don't want to write it for each component in my JPanel. I would like to know if it

How to create dynamic JSF form fields

…衆ロ難τιáo~ 提交于 2019-12-27 08:18:29
问题 I have found some similar questions like this one, however there are so many ways this can be done that it made me more confused. We are getting an XML file that we are reading. This XML contains information on some form fields that needs to be presented. So I created this custom DynamicField.java that has all the information we need: public class DynamicField { private String label; // label of the field private String fieldKey; // some key to identify the field private String fieldValue; //

Debugging in the REDHAWK IDE

谁说我不能喝 提交于 2019-12-25 15:18:22
问题 When stepping through debugging in the REDHAWK IDE, the line marker sometimes doesn't seem to follow proper program flow and not all variables don't seem to be updating appropriately. I am running in the chalkboard with multiple components. I start debugging by opening the component's .spd.xml file and clicking on the "debug as" hyperlink on the overview tab. This adds the component to the chalkboard with the others. The debugger hits my breakpoint after I start all of the components. Has

In Angular How to detect the direct parent and communicate with it?

空扰寡人 提交于 2019-12-25 09:26:52
问题 I have a child component ( child.component ) which can be used in two parent components : parentA.component parentB.component In this case, it's possible to make several templates like this : <parentA> <child></child> </parentA> <parentA> <parentB> <child></child> </parentB> </parentA> For some reasons, the child.component need to detect if the direct parent is parentB. I used '@Inject(forwardRef(() => parentBComponent)) private _directParent:parentBComponent' to do this: child.component.ts

Props becoming null after they are passed into react component

守給你的承諾、 提交于 2019-12-25 08:27:36
问题 I am having a very strange error in React where a component is seeing a couple of the parameters being passed into it as null. Here is the code for the parent component: return ( <div> {postUpvoteCount} {postUpvoteId} <div className='col-xs-1 col-sm-1 comment-upvote'><Upvote upvoteId={postUpvoteId} upvoteCount={postUpvoteCount} userId={userId} postId={postId} commentId='-1'/></div> </div> ); As you can see I check to make sure that the value of postUpvoteCount and postUpvoteId are defined

Customizing (disabling) security settings for IE control

巧了我就是萌 提交于 2019-12-25 08:02:37
问题 I have a job that takes screen shot of a website on a given URL. IE control is instantiated inside the job (which is a console app). However the pages are not rendered correctly the security settings of the server on which the job is running. I found in some answers taht security settings can be controlled by IInternetSecurityManager. I created a class that inherits from WebBrowser class and implements this interface and a couple of others similarly to the way it is done here. But this didn't

delphi transparent background component

自古美人都是妖i 提交于 2019-12-25 06:57:58
问题 Quick question in regard to Delphi XE. I'm trying to make a customized circle-shape component that has transparent background, so that when added on a form, the component can overlap other components. I've tried Brush.Style:=bsTransparent; or ellipse() and more on... but still couldn't find a way to make the edge area transparent. Is there anyway I can make the edge area of the component transparent without using other lib or api? 回答1: Well here's a quick answer, that should get you going.

Delphi Handling a large amount of run time created components

余生长醉 提交于 2019-12-25 06:22:50
问题 Right now I use 2 arrays one of TImage the other of TMemo to draw an image next to text data row after row inside a scroll box. I am looking to replace the TMemo with several components on a Panel. So probably some static text a button and some labels. But the way I'm doing it now it seems as if this will become messy. Is there a better way of going about this without writing a component or class. Should I be using some sort of multi dimensional array or can I use a record structure to

Joomla 2.5 component controller loading

隐身守侯 提交于 2019-12-25 03:36:06
问题 I've been trying to learn how to build a Joomla component. I've been using http://joomlaprogrammingbook.com/ book which is great. I can now do plugins and modules without too much of a problem. However I'm getting stuck with how certain controllers get loaded for components. The site given has the full code if it's needed. The initial controller loaded is: class JoomproSubsController extends JController { /** * @var string The default view. * @since 1.6 */ protected $default_view =

Jframe. Cant get multiple components to display

孤人 提交于 2019-12-25 02:43:20
问题 I am having trouble getting two different components to display at the same time. public class BandViewer { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setSize(1000, 800); frame.setTitle("band"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); BandComponent component = new BandComponent(); ConcertBackground component1 = new ConcertBackground(); frame.add(component); frame.add(component1); frame.setVisible(true); } } Now I read on this forum that you can