Anyone have a simple example of a login dialog? (Java based)
I've seen a couple of examples of login dialogs that request username and password, but nothing that also asks for the database (probably needs to ask for host, port, and SID or Service). It would be super if it could look for TNS info (environment variable set) and create a pulldown list.
If anyone has an example, please point me to the URL.
Seems like this would be a neat 'Wizard' or prepackaged JOptionPanel component palette item
When you create a JClient Form, you've got the option to generate a login dialog.
This does generate a username/password login dialog, but the code it generates, shows you hwo to use LoginStrategies.
This does give you access to every property used by the BC4J Connection pool, to find/create a BC4J connection.
Generate this login dialog, run it in the debugger and check out what comes in and what you can modify at runtime, before
BC4J estableshes a connection.
Similar Messages
-
I am trying to import external CSS in Edge Animate, Has anyone got a "simple" example showing this working that I could have a look at?
Hi Vivek,
Thanks a lot for replying, actually i am creating a short LAMP animation. In which i used Blur filter on the fire flares(SVG images), everything works just fine on google chrome, but for IE10 & Firefox the filter seems not working, so i need to know is it possible to override the fallbacks for the Blur Filter through external StyleSheet.
IE10 & firefox rendered Image, blur filter not working Google Chrome rendered Image, blur filter working perfectly
So, can you please guide me, what shall i do in maintaining quality of my graphics as well while such animation's. -
Does anyone have a simple program that will return the size of a file
Does anyone have a simple program that will return the size of a file?
I quite hate it when I receive the incorrect amount of yoctocandela per metre squared. Swarthy people
can't properly convert poundal feet to barleycorn; throws off the whole conversion! Aaah, you get what
you paid for.I recognize those figures; you've got your outsourced file sizes from Zanzibar; admit it! I always apply
the scientific approach when I've got file sizes back from Zanzibar: I simply divide those numbers by
pi (very scientific) and drop the eleven (ueber scientific, because 11 is prime even when looked upon
as a binary number) least significant bits. And remember: never compare two floating point numbers
for equality. (<--- that's a free tip)
Jos ;-) -
Does anyone have a simple code.....
Does anyone have a simple code to make a xml video like you tube?
Hi zenith
By default the source of counter 0 while using the 9401 is located on PFI0 or pin 14. In order to determine the rest of the pins have a look at the image below. I was able to get this information from by right clicking my device in Measurement and Automation Explorer (MAX) and selecting device pinouts.
You can also specify which PFI line the counter outputs on. In order to use this you use a DAQmx Channel Property node and modify the Counter Output Pulse Terminal. Have a look at the screen shot below
Hope this helps.
Chris_K_
Message Edited by Chris_K_ on 08-27-2008 12:26 PM
National Instruments
Applications Engineer
Attachments:
2008-08-27_111350.jpg 20 KB
2008-08-27_110349.jpg 72 KB -
As the title says, can anyone recommend any simple displacementmapfilter examples?
I have a bitmap image of a sleeping animal that I would like to add a small effect to that will make it look like it is breathing. I'm guessing this should be pretty simple with displacementmapfilter - a spherical distortion tweened over time over the animal's chest.
Any suggestions?i don't think there's anything simple about the displacementmapfilter. i've tried to explain it before but i've never had the feeling that i was able to convey understanding.
here's the displacementmapfilter at work: www.kglad.com, click snippets, click displacement.
here's the source code: www.kglad.com/Files/forums/displacementMapFilter_AS3.fla
p.s. there's commented-out code in there that used a squeeze and bulge function during my early experiments that could probably be used by you. -
Anyone have a simple ksoap HelloWorld program
Hello,
I'm just starting to use ksoap and J2me and i would like to run the most basic of programs HelloWorld does anybody have a ksoap version of HelloWorld that I could run on j2me or better still a simple ksoap program thatwould work over jBuilder.
would really really appreciate any help
Thanks a million
please help !!!!Thanks a lot I've been working from the first article and have had mixed sucess the second I hadn't seen before could be of help.
Thanks agin if any one else has any other links or simple examples please don't be shy!!
Thanks -
Newbie to numbers, does anyone have a simple template for rental property?
I am new to numbers, I need a simple program or template to track income and expenses for a rental property that I just purchased.
Any help would be appreciated.
Thanks
JohnJohn,
You may search the web to find a ready made template but this is really a do-it-yourself type of situation that you tailor to meet your needs. Not being a landlord, I can only guess as to how i would set this up. And after using it for awhile I'm sure that modifications would be required to meet situations I had not expected.
At any rate, perhaps the simple example below will get you thinking. All the formulas are simple addition/subtraction or SUM() situations so I've not listed them. If you need help however, feel free to ask.
pw -
APO DP Anyone have a simple definition of each Forecast Formula?
I went to the SAP online manual, but those formulas are complex. Does anyone have a document that lists each formula and a brief general description of what it does? Iu2019d be truly thankful for any help!
Hi Dan,
I am not sure which documentation you saw.
Below is good one and self explanatory
http://help.sap.com/saphelp_46c/helpdata/en/a5/6320e843a211d189410000e829fbbd/content.htm -
Does anyone have a preprocessor example
Hi,
I've been looking for a Weblogic Server preprocessor example.
The only place I can find anything about it is
http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1041026
but I can't see an example or a document telling you how to write one.
Does anyone had such a document/example ?
Thanks
Yshemi
Hi Sam,
A while ago I went to an upgrade to ver 7 course.
and this was a topic in the web app section of the changes.
I remembered this when I was asked to have some sort of a
quick redirection component.
Not sure how it works so i thought an example will be nice
( especially if it is an important enough topic to be put in
the upgrade course ).
Thanks
Yshemi
am Pullara <[email protected]> wrote:
>Hi,
>
>I don't see an example, but the interface that you must implement is
>
>weblogic.servlet.ServletPreprocessor. I'm not sure if this is
>interesting to anyone though, because I think it is a proprietary API
>
>used by our layered products. You should probably use the filter API
>
>for this.
>
>/**
> * <pre>
> * Basic interface which defines a Preprocessor. The servlet container
> * guarantees to call a preprocessor's preService() method before
> * any filters / servlets are invoked and also before any authentication
> * on the URI occurs.
> * Their basic goal is to reroute the request to the right servlet
>according
> * to the configuration in the weblogic.xml
> * </pre>
> */
>public interface ServletPreprocessor{
>
> /**
> * @param req the original request
> * @return changed uri OR null if unchanged.
> */
> public String preService(HttpServletRequest req);
>}
>
>Is there something that you are looking to do with this? It sort of
>
>sounds on the surface like something that you might use to change the
>
>source code of a .jsp or something like that but it looks like it is
>
>just a really quick way to redirect.
>
>Sam
>
>Yshemi wrote:
>> Hi,
>>
>> I've been looking for a Weblogic Server preprocessor example.
>> The only place I can find anything about it is
>> http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1041026
>> but I can't see an example or a document telling you how to write one.
>
>> Does anyone had such a document/example ?
>>
>> Thanks
>> Yshemi
>
-
Anyone have a simple answer?
Whats the difference bettween public and private in java.
For example i see people that put private code. And others including me who use public static main void.
Any hints or explinations would help.
Thanks,
MSBy the way, you should declare your fields private (in classes) whenever possible. You don't want people using your code to have too much access to the members inside your class. If you think it's ok for them to access them, then provide accessor methods
for example:
public Person {
private static String obj_name = "Person";
private String name;
public int age = 0;
public Person() {
this("Foo");
public Person(String name) {
this.name = name;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public static String whoIsThis() {
return obj_name; // obj_name can only be used here because of the static context
public static void main(String[] args) {
Person p = new Person();
String name = p.getName(); // you can only access name via this accessor
int age = p.age; // you can do this because age is public and you can access it via the object p
System.out.println(Person.whoIsThis()); // you can access whoIsThis via the actual class because it's static
}Message was edited by:
leggomyeggroll -
c annot reinstall ipod after i tunes update help
What do yo mean install?
If you mean that your iPod touch (lates is the 5G)does not appear in iTunes then:
iOS: Device not recognized in iTunes for Mac OS X
Or
See
iOS: Device not recognized in iTunes for Windows
- I would start with
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
or
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
- Then do the other actions of:
iOS: Device not recognized in iTunes for Windows
paying special attention to item #5
- New cable and different USB port
- Run this and see if the results help with determine the cause
iTunes for Windows: Device Sync Tests
Also see:
iPod not recognised by windows iTunes
Troubleshooting issues with iTunes for Windows updates
- Try on another computer to help determine if computer or iPod problem -
Simple example of image with OAS 4.0.8.1 PL/SQL
Hi,
Does anyone have a simple example which reads an interMedia image (e.g. gif, jpeg stored in database) and places it on a web page using the Oracle Application Server PL/SQL cartridge ?
WebDB can do it so it must be possible!
Any help would be much appreciated.
All the Best.
Niall.I don't have any examples, but you can use the interMedia Web Agent to place URLs in an HTML file in order to retrieve images and put them on a web page.
In your HTML file, you can use images tags in the following way:
<img src="/intermedia/dbagent/mediaget/get_picture/1">
instead of
<img src="test_image.gif">
In this example, "dbagent" is your Database Agent you have defined using the interMedia Web Agent, "mediaget" is the request mode for retrieving data from the database, "get_picture" is your PL/SQL procedure, and "1" is the key value used to locate the object you are retrieving.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by niallmcp ():
Hi,
Does anyone have a simple example which reads an interMedia image (e.g. gif, jpeg stored in database) and places it on a web page using the Oracle Application Server PL/SQL cartridge ?
WebDB can do it so it must be possible!
Any help would be much appreciated.
All the Best.
Niall.<HR></BLOCKQUOTE>
null -
WaitForMultipleObjects simple example
Hi,
Does anyone have a simple example how to emulate/implement the Win32's WaitForMultipleObjects() behavior in Java?
Just to remind those who are maybe not familiar with this function, WaitForMultipleObjects() is similar to Java's wait() function in the contrast it can wait for a list of objects to be in a signalled state. We can wait for ALL of them or ANY of them (objects). Since waiting for ALL objects is kind of trivial (just nesting all synchronized blocks one after each other) I'm more interested in how to wait for ANY of the objects in the given list of objects.
Thanks to all who can provide a basic example of how to do this in Java.Not sure exactly what you're looking for, but perhaps a Semaphore will be useful?
Or, you can just have your waiting thread waiting for a CountdownLatch, and then whichever of the other threads gets to it first, triggers it.
Look through the classes in java.util.concurrent to see if one or more of them can help you. -
Can anyone share a simple OCR example?
I'm putting together a simple OCR application in 8.2 and IMAQ - snap an image, define the ROI, unwrap, then perform OCR. I'm not finding any useful information on the NI site as to how to put this together. Could anyone share a simple example?
How did you not find them helpful? You need to elaborate on what exactly you want to get done if you need help on these forums.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
Custom StyledEditorKit: simple example/tutorial?
I'm trying to write a simple EditorKit to color specific parts of a text (and later different fonts). I extended StyledEditorKit for this, but can't get any text to be colored in my JTextPane. The Java Tutorial and also what I've found in this forum and google didn't show how to start writing a simple EditorKit.
Well, I have a simple example that shows how to start. Of course it's brute force colorizing always the complete text and only works for well-formed XML, but it's a working example of how to write your own EditorKit. It shows that only a few things have to be done.
public class XMLEditorKit extends StyledEditorKit {
* Constructor.
public XMLEditorKit() {
super();
}//XMLEditorKit()
* Overwrites super.
public String getContentType() {
return "text/xml";
}//getContentType()
* Overwrites super.
public Document createDefaultDocument() {
return new XMLDocument();
}//createDefaultDocument()
}//XMLEditorKit
class XMLDocument extends DefaultStyledDocument {
/** Attributes for XML element tag. */
private MutableAttributeSet tag = null;
/** Attributes for element value. */
private MutableAttributeSet elementValue = null;
* Constructor.
public XMLDocument() {
tag = new SimpleAttributeSet();
StyleConstants.setForeground(tag, Color.blue);
elementValue = new SimpleAttributeSet();
StyleConstants.setForeground(elementValue, Color.black);
}//XMLDocument()
* Override AbstractDocument.
public void insertString(int offset, String str, AttributeSet a) throws BadLocationException {
super.insertString(offset, str, a);
colorize();
}//insertString()
* Override AbstractDocument.
public void remove(int offset, int length) throws BadLocationException {
super.remove(offset, length);
colorize();
}//remove()
* Called when document content changed to revalidate syntax highlightning.
* Only works correctly for well-formed XML.
private void colorize() throws BadLocationException {
String text = getText(0, getLength());
int startIndex = 0;
int endIndex = text.length() + 1;
int openIndex = 0;
int closeIndex = 0;
boolean outOfTag = true;
while (startIndex <= endIndex) {
openIndex = text.indexOf('<', startIndex); //next '<'
closeIndex = text.indexOf('>', startIndex); //next '>'
if (outOfTag) {
if (openIndex >= 0) {
setCharacterAttributes(startIndex, openIndex - startIndex, elementValue, false);
startIndex = openIndex;
outOfTag = false;
} else {
setCharacterAttributes(startIndex, endIndex + 1, elementValue, false);
break;
} else { //withinTag
if (closeIndex >= 0) {
setCharacterAttributes(startIndex, closeIndex - startIndex + 1, tag, false);
startIndex = closeIndex + 1;
outOfTag = true;
} else {
setCharacterAttributes(startIndex, endIndex + 1, tag, false);
break;
}//next occurence
}//colorize()
}//XMLDocumentSo, to start write a custom EditorKit,
1. extend StyledEditorKit (or DefaultEditorKit, if you like)
2. create a document class extending DefaultStyledDocument
3. overwrite insertString()/remove() in your document class to implement your custom text styling.
Maybe you are looking for
-
Multiple devices using same apple id. How do i break it up?
I have 2 iphones one ipad and 2 ipod touches all sharing the same apple id. I want to add a new apple id for my wife and her iphone and ipod touch. How do I do this and how can we share our bought items?
-
How can I download my purchased copy of Photoshop Elements 11?
My laptop was completly new formatted and installed. I saved my downloaded photoshop element 11 version on a sd card. Now I try to reinstall photoshop element 11. But I get at the end the message: error occured elements cannot be installed! What do i
-
SOA Gateway installation for EBS 12.1.2 from 12.0.6
Hello Friends I have installed Oracle EBS 12.1.2 from 12.0.6. I want to install integrated SOA gateway (ISG) in the upgraded version 12.1.2. But I cannot find a direct ISG patch update in Oracle Metalink for 12.1.2 from 12.0.6; Oracle gives patch on
-
Saved bookmarks not showing website icons
I have all my saved bookmarks and they all work,but instead of having the little icon of the site,they have what looks like an explorer logo in front of it.Ex.ebay would have the ebay logo in front of the bookmark.
-
Okay tried to play bejeweled on Facebook but it requires flash which I guess apple does not allow is there a way to do this?