Finance Trading Swing Urgent Positions
Hi Folks ,
I happen to be an ex technical developer and am currently working with 3 of major investment banks and inter broker dealers in NY, NJ.
Some of the hiring managers are hurting big time and looking to speak to jave Swing expert who have financial trading experience or are looking to get into investment banks.
Please do send me an email at [email protected] to talk further about my clients and their opportunity.
Key Words : Java, Swing, Real time, multithreading, trading,finance.
Please feel free to refer anyone you know, we have a strong referral fee structure.
Thank You,
Nick
[email protected]
Hi Folks ,
I happen to be an ex technical developer and am currently working with 3 of major investment banks and inter broker dealers in NY, NJ.
Some of the hiring managers are hurting big time and looking to speak to jave Swing expert who have financial trading experience or are looking to get into investment banks.
Please do send me an email at [email protected] to talk further about my clients and their opportunity.
Key Words : Java, Swing, Real time, multithreading, trading,finance.
Please feel free to refer anyone you know, we have a strong referral fee structure.
Thank You,
Nick
[email protected]
Similar Messages
-
Many javax.swing.text.Position objects en masse
Hi,
I am wondering if anyone has much experience with the performance of javax.swing.text.Document implementations (using GapContent) and a large number of registered Position objects. I am trying to keep track of token boundaries for quick re-lexing, and the token count can be rocket high. I am just beginning to work with this API, and I guess I am looking for any insider information I may be missing.
Thanks,
galaxyHi,
I am wondering if anyone has much experience with the performance of javax.swing.text.Document implementations (using GapContent) and a large number of registered Position objects. I am trying to keep track of token boundaries for quick re-lexing, and the token count can be rocket high. I am just beginning to work with this API, and I guess I am looking for any insider information I may be missing.
Thanks,
galaxy -
(urgent) Position Hierarchy and PO approval...
Hi,
We have re-engineered the current Position and Job Flexfield set-up, basically an additional segment in the Position FF and hiding a segment in Job FF. Adn the employee will be assigned to a one level high in the organization. So basically, employee will be assigned to a new org as well.
Due to the changes, all employees will be moved to a new position. Now since client is utilizing the Position Hierarchy, I would like to know if we
need to approved all the outstanding PO that requires approval, before moving the employees to the new assignment?
If we dont do that, will there be any implications or will it cause any problems moving forward.
Another question is, is it necessary to approved all the PO before changing all the employee assignment???
Your response will be greatly appreciated.
Thanks..PO Approval workflow is highly sensitive to changes while workflows are in progress. Remember workflow is versioned, so if you make changes to the workflow itself, then in progress workflows will still execute using the workflow definition at the time it started. Changing the user name is one no-no while that user has a PO Approval related to them in progress.
However saying that, its tough to answer your question without knowing more detail of the changes. If the original approval related data structures remain in place and you haven't changed the workflow definition, then the in process workflows may be okay to complete assuming the new positions the employees are moved to still allow the "Find Approver" function to execute correctly... not sure about the organization part...
As always, try it out in your test environment!
Regards,
Gareth -
Swings Urgent Requirement, Please Help me
Hi ,
I have a requirement like when a file dialog is displayed, I have to select only directories/folders. Now with using JFileChoser , I am able to choose file . Is there any possibility to choose only directories without file dialog or atleast by using filedialog?. If some solution Please help me as this is urgent requirement.
Thanks and Regards,
Rajeev L.JFileChooser has an instance method public void setFileSelectionMode(int mode)
call when initialising the file chooser.
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY ); -
hi all..
I am new to swing,can anyone help me in designing the swing application like this
I should have textbox at the top like
label name: textbox
and below the textbox i should have a listbox,like
label:
listbox
and beside the textbox i should have a button
Can any one help me..
Thanks
ajayI'll assume that you have a JFrame (an application window) to contain your application GUI stuff. In the JFrame, get your content pane and add the components to it using appropriate layout managers:
public class MyAppFrame extends JFrame {
//-- class members
JTextField jtf_Text;
JButton jb_Button;
JList jl_List;
MyAppFrame(String title) {
//-- initialize frame
super(title);
setLocation(x,y); //-- enumerate x and y
setSize(w,h); //-- enumerate w and h
//-- add components to frame
//---- this is the panel into which to place components for the frame
JPanel contentPane = getContentPane();
contentPane.setLayout(new BorderLayout());
//---- label textbox button
JPanel panel = new JPanel();
panel.setLayout(new FlowLayout()); //-- fits components, first horizontally, then vertically
panel.add(new JLabel("Name: "));
panel.add(jtf_Text = new JTextField(/*Fill in ... */));
panel.add(jb_Button = new JButton("Button"));
contentPane.add(panel, BorderLayout.NORTH);
//---- label
panel = new JPanel();
panel.setLayout(new GridLayout(2,1)); //-- 2 rows, 1 column
panel.add(new JLabel("Label: "));
panel.add(jl_List = new JList(/*Fill in... */));
contentPane.add(panel, BorderLayout.CENTER);
//-- display frame
setVisible(true);
public static void main(String[] args) {
MyAppFrame maf = new MyAppFrame("Application Title");
}Realize that there is no absolute placement control of components, only relative placement precomputed and handled by the layout managers. Therefore, if the JFrame is resized, components may be shifted around depending upon the attributes of the layout manager. This is a good time to look at the Java 2 Swing tutorials or get a good book on Java Swing. "Graphic Java 2: Mastering the JFC, Vol. 2 - Swing" (Sun Microsystems Press) is recommended. Also keep abreast of differences between older Java versions (1.2, 1.3) and the latest (1.4).
Robert Templeton -
How to Close Multi Child Windows : ADF Swings - Urgent
Hi,
I have developed a application having Login , Filter , Master , Details , and Detail Screen . In the Filter Screen If i click on button called " CLOSE CHILD WINDOW " , all the screens ( Master , Details And Summary ) to be closed .
Can u please let me know how can i do this .
For even Child Window to open from parent Window , i have implemented same piece of code from adfwhitepapers docs.
private void jButton1_actionPerformed(ActionEvent e) {
SalesOrderDetails salesOrderDetails = new SalesOrderDetails();
salesOrderDetails.setBindingContainer(createDetailBinding(salesOrderDetails));
DCIteratorBinding iterBinding = getPanelBinding().findIteratorBinding("SalesOrderEOVO1Iterator");
RowSetIterator detailAccessor = iterBinding.getRowSetIterator();
salesOrderDetails.getPanelBinding().findIteratorBinding("SalesOrderEOVO1Iterator").bindRowSetIterator(detailAccessor, false);
salesOrderDetails.setVisible(true);
int count = 0;
private DCBindingContainer createDetailBinding(SalesOrderDetails salesOrderDetails)
String detailBCName = "SalesOrderDetailsPageDef"+count;
if (panelBinding.getBindingContext().get(detailBCName) == null)
DCBindingContainerDef bcdef = DCBindingContainerDef.findDefObject("oracle.eaton.userinterface.pageDefs.SalesOrderDetailsPageDef");
DCBindingContainer bc = bcdef.createBindingContainer(panelBinding.getBindingContext());
bc.setName(detailBCName);
panelBinding.getBindingContext().put(detailBCName, bc);
++count;
return bc;
return null;
Regards
Bhanu PrakashI have referred this link for the consecutive opening and closing screen for the linkage between the two screen like 1&2 , 2&3 , 3&4 , that was my understanding if so not can u please explain me . My requirement is to close all the child windows from the Super Parent Window , i.e. on Select of close button in Filter Screen all the screen ( Master,Detail,Summary ) should be disposed or close ,
I have generated 4 screens :::
1. Filter Screen
2. Master Screen
3. Detail Screen
4. Summary Screen
Can any one help me by giving there solution to sort out this issue . Its very Urgent .
Regards
Bhanu Prakash -
AAARGH!!! Can't understand javax.swing.text.*
Good afternoon...
does anybody understand javax.swing.text classes? i've read a number of
books, downloaded docs (including those from the javax.swing.text author), and googled everything i could think of. but nothing seems to explain it to me so that i can understand it! maybe i'm just dense, but maybe it really is that difficult.
i want to create a read-only document, who's source is not necessarily a
string, but perhaps an ArrayList of objects with a HashMap of attributes. or even something simpler for now, just an object with a fixed number of attributes. i want to display this information in a JTextArea. i tried implementing a Document and passing it to the JTextArea constructor but just got a NullPointerException.
does anybody know where i can find more information on creating my own
document types?
here's the code for my ReadOnlyDocument class if anyone of you are generous (& adventurous) enough to take a look:
import java.util.ArrayList;
import javax.swing.event.DocumentListener;
import javax.swing.event.UndoableEditListener;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.Element;
import javax.swing.text.Position;
import javax.swing.text.Segment;
public class ReadOnlyDocument implements Document{
private String myContent = "this is the contents of my document!";
private ArrayList listeners;
private ReadOnlyDocument refSelf = this;
public ReadOnlyDocument() {
System.out.println("ReadOnlyDocument.<init>");
public int getLength() {
System.out.println("ReadOnlyDocument.getLength() = " + myContent.length());
return myContent.length();
public void addDocumentListener(DocumentListener listener) {
System.out.println("ReadOnlyDocument.addDocumentListener(" + listener + ")");
if (listeners != null) {
listeners = new ArrayList();
listeners.add(listener);
} else {
listeners = new ArrayList();
listeners.add(listener);
public void removeDocumentListener(DocumentListener listener) {
System.out.println("ReadOnlyDocument.removeDocumentListener(" +
listener + ")");
if (listeners != null) {
listeners.remove(listener);
public void addUndoableEditListener(UndoableEditListener listener) {
// Read-only document, nothing to do here
System.out.println("ReadOnlyDocument.addUndoableEditListener(" +
listener + ")");
public void removeUndoableEditListener(UndoableEditListener listener) {
// Read-only document, nothing to do here
System.out.println("ReadOnlyDocument.removeUndoableEditListener(" +
listener + ")");
public Object getProperty(Object key) {
System.out.println("ReadOnlyDocument.getProperty(" + key + ") =
null");
return null;
public void putProperty(Object key, Object value) {
System.out.println("ReadOnlyDocument.putProperty(" + key + ")");
public void remove(int offs, int len) throws BadLocationException {
// Read-only document, nothing to do here
System.out.println("ReadOnlyDocument.remove(" + offs + ", " + len +
public void insertString(int offset, String str, AttributeSet a) throws
BadLocationException {
// Read-only document, nothing to do here
System.out.println("ReadOnlyDocument.insertString(" + offset + ", " +
str + ", " + a + ")");
public String getText(int offset, int length) throws
BadLocationException {
System.out.print("ReadOnlyDocument.getText(" + offset + ", " + length +
") = ");
if ((offset >= 0) && (length >= 0) && (offset+length <=
myContent.length()+1)) {
System.out.println(myContent.substring(offset, offset+length-1));
return myContent.substring(offset, offset+length-1);
} else {
System.out.println("BadLocationException!");
throw new BadLocationException("Bad location requested", 0);
public void getText(int offset, int length, Segment txt) throws
BadLocationException {
System.out.print("ReadOnlyDocument.getText(" + offset + ", " + length +
", " + txt + ") = ");
if ((offset >= 0) && (length >= 0) && (offset+length <=
myContent.length()+1)) {
System.out.println(myContent.substring(offset, offset+length-1));
txt = new Segment(myContent.toCharArray(), offset, length);
} else {
System.out.println("BadLocationException!");
throw new BadLocationException("Bad location requested", 0);
public Position getStartPosition() {
System.out.println("ReadOnlyDocument.getStartPosition() = 0");
return new Position() {
public int getOffset() {
return 0;
public Position getEndPosition() {
System.out.println("ReadOnlyDocument.getEndPosition() = " +
myContent.length());
return new Position() {
public int getOffset() {
return myContent.length();
public Position createPosition(int offs) throws BadLocationException {
System.out.println("ReadOnlyDocument.createPosition(" + offs + ") =
0");
if ((offs >= 0) && (offs <= myContent.length()-1)) {
return new Position() {
public int getOffset() {
return 0;
} else {
throw new BadLocationException("Bad location requested", 0);
public Element[] getRootElements() {
System.out.println("ReadOnlyDocument.getRootElements()");
Element[] roots = {new Element() {
public Document getDocument() {
return refSelf;
public Element getParentElement() {
return null;
public String getName() {
return "ReadOnlyRoot";
public AttributeSet getAttributes() {
return null;
public int getStartOffset() {
return 0;
public int getEndOffset() {
return myContent.length() - 1;
public int getElementIndex(int offset) {
return 0;
public int getElementCount() {
return 0;
public Element getElement(int index) {
return null;
public boolean isLeaf() {
return true;
return roots;
public Element getDefaultRootElement() {
System.out.println("ReadOnlyDocument.getDefaultRootElement()");
return new Element() {
public Document getDocument() {
return refSelf;
public Element getParentElement() {
return null;
public String getName() {
return "ReadOnlyRoot";
public AttributeSet getAttributes() {
return null;
public int getStartOffset() {
return 0;
public int getEndOffset() {
return myContent.length() - 1;
public int getElementIndex(int offset) {
return 0;
public int getElementCount() {
return 0;
public Element getElement(int index) {
return null;
public boolean isLeaf() {
return true;
public void render(Runnable r) {
// not sure what to put here
System.out.println("ReadOnlyDocument.render(" + r + ")");
}and here's a simple class to display the document/generate the error:
import java.awt.event.*;
import javax.swing.*;
public class ReadOnlyFrame extends JFrame {
public ReadOnlyFrame() {
super();
setTitle("Read Only Document");
addWindowListener(new WindowAdapter() {
public void windowClosed(WindowEvent e) {
System.exit(0);
getContentPane().add(new JTextArea(new ReadOnlyDocument()));
setSize(200, 200);
public static void main(String[] args) {
ReadOnlyFrame rof = new ReadOnlyFrame();
rof.setVisible(true);
Headed for the second star to the right and straight on till morning...
Eric Schultz
aka: Storkman
http://community.webshots.com/user/storky1
mailto:EricSchultzATcanadaDOTcomif you are getting that print before the timer
starts, then I'd expect it's not blocking. The
problem with these small snippets of code is that we
can't really tell what might be going on elsewhere.Yes, I realize that. AAMOF, there isn't anything going on elsewhere, i.e.
the GestureController object spawns another thread when it gets
created. That other thread blocks until a 'Mover' object is delivered to
the GestureController object. The mutex/synchronizing stuff works
like the textbook version, i.e. no deadlock, no deadly embrace, no
nothing. When the timer is started, the Mover is supposed to
call back the 'animate' method, just a method in the GestureController
object.
All the System.out.prints show that it gets there. The task (an ActionListener)
dispatched by that timer doesn't start. As you can see above, I've
used System.out.prints for that too. It is as if that Timer doesn't start.
I still haven't found anything ... This is what the 'auto.move' thing is
supposed to do: static class DragMover implements Mover {
DrawableStack from;
DrawableStack to;
int position;
DragMover(DrawableStack from, int position, DrawableStack to) {
this.from= from;
this.to = to;
this.position= position;
public void move() {
System.out.println("moving the stuff...");
GestureController.getGestureController().animate(from, position, to);
public void undo() { }
}... the line "moving stuff ..." isn't displayed either, i.e. the actionPerformed
method is never called and then ... there's nothing in between there, i.e.
the Timer is supposed to call that method.
Thank you for your reply, much appreciated and,
kind regards,
Jos
by that timer (an ActionListener) -
hi guys,
can any one tell me what kind of class is the Position? I searched for it in this web site.
but couldnt find it.
any comment
abdulIt's actually an interface, not a class.
http://java.sun.com/j2se/1.4/docs/api/javax/swing/text/Position.html -
Urgently required!! Oracle BPM Expert in (UK)
Hi,
I am looking for few good Oracle BPM specialists with good knowledge of SOA including ITIL knowledge. Can some one please help me find some right candidates here?
The client is one of the largest technology players in the world.
**Location: UK**
**Type: Long Term - Fix Term Employment**
**Sal: can be discussed after I have received the CV from the candidate.*
This is very urgent position please.
I can be contacted on [email protected]
Regards
Sandy
+44 7789800188Sorry my email is [email protected]
-
Sticking components in JPanel to GridLayout
Could please anyone help in the following.
I have an application where some JPanel with several Swing components
positioned with help of GridLayout. What I need is to
remove and place components during runtime,
but the problem is that when I remove component placed somewhere
inbetween with use of the method remove() of the class JPanel,
all components are shifted so that the empty space is filled and
even one can see that the initial GridLayout is destroyed.
How can I stick all components to the initial grid cells of GridLayout?
I mean I do not want components to shift anywhere from their original
cells.
Thank you in advance.Well, that solution is what I came to also.
I mean I replacing removed compenent with some other invisible component.
But is this indeed the only way?
I tryied the method removeLayoutComponent() in the class GridLayout, but
I have not understood how it works and what it is for.
When I tryied it instead of remove() (of JPanel) it did not remove anything,
but it looks like something relevant to my situation.
PS The second line of my orginal poster should be read
"I have an application where some JPanel is created with several Swing components
positioned with help of GridLayout in it".
Sorry... -
Setting the color of a particular node in JTree
Hi all!
I'm new to Java and facing a problem with JTrees.
I'm using the following snippet to create a JTree :
DeafultMutableTreeNode root = new DefaultMutableTeeNode("Letters");
DeafultMutableTreeNode parent1 = new DefaultMutableTeeNode("uppercase");
DeafultMutableTreeNode parent2 = new DefaultMutableTeeNode("lowercase");
DeafultMutableTreeNode child1 = new DefaultMutableTeeNode("A");
DeafultMutableTreeNode child2 = new DefaultMutableTeeNode("B");
DeafultMutableTreeNode child3 = new DefaultMutableTeeNode("C");
DeafultMutableTreeNode child4 = new DefaultMutableTeeNode("a");
DeafultMutableTreeNode child5 = new DefaultMutableTeeNode("b");
DeafultMutableTreeNode child6 = new DefaultMutableTeeNode("c");
root.add(parent1);
root.add(parent2);
parent1.add(child1);
parent1.add(child2);
parent1.add(child3);
parent2.add(child4);
parent2.add(child5);
parent2.add(child6);
JTree tree = new JTree(root);
JScrollPane pane = new JScrollPane(tree);
TreePath path = tree.getNextMatch("lowercase", 0, javax.swing.text.Position.Bias.Forward);
tree.setSelectionPath(path);
tree.expandPath(path);
In the above JTree, the node labeled "lowercase" gets selected and expanded as soon as the program is run.
What i want to know is that, is there any way in which i can set only the "lowercase" node's background to a different color (say, YELLOW) and have it so, no matter if the node is expanded or collapsed or other nodes are expanded or collapsed.
ps: Sample snippet would really b helpful.You need to write your own renderer for this.
Read the tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#display -
Setting the color of a node in JTree
Hi all!
I'm new to Java and facing a problem with JTrees.
I'm using the following snippet to create a JTree :
DeafultMutableTreeNode root = new DefaultMutableTeeNode("Letters");
DeafultMutableTreeNode parent1 = new DefaultMutableTeeNode("uppercase");
DeafultMutableTreeNode parent2 = new DefaultMutableTeeNode("lowercase");
DeafultMutableTreeNode child1 = new DefaultMutableTeeNode("A");
DeafultMutableTreeNode child2 = new DefaultMutableTeeNode("B");
DeafultMutableTreeNode child3 = new DefaultMutableTeeNode("C");
DeafultMutableTreeNode child4 = new DefaultMutableTeeNode("a");
DeafultMutableTreeNode child5 = new DefaultMutableTeeNode("b");
DeafultMutableTreeNode child6 = new DefaultMutableTeeNode("c");
root.add(parent1);
root.add(parent2);
parent1.add(child1);
parent1.add(child2);
parent1.add(child3);
parent2.add(child4);
parent2.add(child5);
parent2.add(child6);
JTree tree = new JTree(root);
JScrollPane pane = new JScrollPane(tree);
TreePath path = tree.getNextMatch("lowercase", 0, javax.swing.text.Position.Bias.Forward);
tree.setSelectionPath(path);
tree.expandPath(path);
In the above JTree, the node labeled "lowercase" gets selected and expanded as soon as the program is run.
What i want to know is that, is there any way in which i can set only the "lowercase" node's background to a different color (say, YELLOW) and have it so, no matter if the node is expanded or collapsed or other nodes are expanded or collapsed.
ps: Sample snippet would really b helpful.You need to write your own renderer for this.
Read the tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#display -
JDeveloper Extension Development - How to
Based on the Clean White Space extension (by Daniel Work
CleanWhiteSpace.zip), I modified it to work with JDeveloper 5.0.5.2 (build 1618) and added new functionality to remove every other blank line.
(FYI: I work on Windows and my CVS server on Linux; when I export/import from CVS, the source code ends up with double line feeds. JDev bug?). In any case, I wrote this utility that cleans this up quickly.
My question is how to I activate the blicking caret (cursor) in the code editor window after the extension has finished processing the text? (i.e. How could I simulate a mouse click in the editor window where the cursor used to be?)
Thanks. [email protected]
Partial code below:
public class CleanWhiteLinesAddin implements Addin, Controller
private boolean doCleanWhiteLines(Context context)
boolean bUpdated = false;
EditDescriptor editUndoInfo = new EditDescriptor(TITLE);
BasicEditorPane editor = getCurrentEditorPane(context);
String initialText = null;
if (editor != null)
editor.beginEdit(editUndoInfo);
try
int origLinePos = editor.getLineFromOffset(editor.getCaretPosition());
int newLinePos = origLinePos;
editor.selectAll();
String allText = editor.getSelectedText().trim();
StringBuffer out = new StringBuffer( allText.length() );
// testing
//allText = allText.replaceAll("\n", "[[nl]]");
//allText = allText.replaceAll("\r", "[[cr]]");
// Write info in the log window
//LogManager.getLogManager().showLog();
//LogManager.getLogManager().getMsgPage().log("Source code is:\n" + allText + "\n");
//LogManager.getLogManager().getMsgPage().log("Line offset=" + origLinePos + "\n");
allText = allText.replaceAll("\r", "\n"); //if any...
String aLine = null;
int lineCount = 0;
int blankLineCount = 0;
int beginIndex = 0;
int endIndex = allText.indexOf('\n', beginIndex); //allText.charAt('\n');
while ( (beginIndex>=0) && (beginIndex<allText.length())
&& (endIndex>=0) && (endIndex<=allText.length()) )
aLine = allText.substring(beginIndex, endIndex).trim();
if ( (0 == aLine.length()) )//&& (!justPrintedBlankLine)
if (blankLineCount < 1)
++blankLineCount;
if ( (lineCount<newLinePos) && (newLinePos>0) )
--newLinePos;
else
out.append("\n");
blankLineCount = 0;
else
out.append(aLine);
out.append("\n");
blankLineCount = 0;
// forward
beginIndex = endIndex + 1;
endIndex = allText.indexOf('\n', beginIndex);
++lineCount;
// At loop exist, make sure that we have the last line in the case where
// there is not line feed
if (beginIndex < allText.length())
out.append( allText.substring(beginIndex) );
if (!out.equals(allText))
editor.replaceSelection( out.toString() );
bUpdated = true;
editor.moveCaretPosition( editor.getLineEndOffset(newLinePos) - 1);
editor.unselect();
// How to we activate the cursor to the line where we where
// in the column where we were?
catch (Exception ex)
ex.printStackTrace();
finally
editor.endEdit();
return bUpdated;Hi,
I'm not sure what's causing your double-line issue with CVS. I routinely use CVS on Linux with a Windows client, and haven't experienced this issue. Do you get the same problem when using cvs from the command line?
The following addin cleans white lines and preserves the caret position. I converted the code to directly modify the document and use a Position to track the original caret location. This means that even if the line your cursor was on has changed because of removed lines, the cursor position will be restored to the right place:
package mypackage1;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.Position;
import oracle.ide.ContextMenu;
import oracle.ide.Ide;
import oracle.ide.IdeAction;
import oracle.ide.addin.Addin;
import oracle.ide.addin.Context;
import oracle.ide.addin.ContextMenuListener;
import oracle.ide.addin.Controller;
import oracle.ide.editor.EditorManager;
import oracle.javatools.editor.BasicDocument;
import oracle.javatools.editor.BasicEditorPane;
import oracle.javatools.editor.EditDescriptor;
import oracle.jdeveloper.ceditor.CodeEditor;
public class CleanWhiteLinesAddin implements Addin, Controller
private static final String CLEAN_CMD = "oracle.sample.bduff.CleanCommand";
private BasicEditorPane getCurrentEditorPane( Context context )
if ( context.getView() instanceof CodeEditor )
return ((CodeEditor)context.getView()).getFocusedEditorPane();
return null;
private int replaceAll( Document doc, char search, char replace )
throws BadLocationException
int count = 0;
for ( int i=0; i < doc.getLength(); i++ )
if ( doc.getText( i, 1 ).charAt( 0 ) == search )
doc.remove( i, 1 );
doc.insertString( i, String.valueOf( replace ), null );
count++;
return count;
private int indexOf( Document doc, char search, int start )
throws BadLocationException
for ( int i=start; i < doc.getLength(); i++ )
if ( doc.getText( i, 1 ).charAt( 0 ) == search )
return i;
return -1;
private boolean doCleanWhiteLines(Context context)
boolean bUpdated = false;
EditDescriptor editUndoInfo = new EditDescriptor( "Clean White Lines" );
BasicEditorPane editor = getCurrentEditorPane(context);
if (editor != null)
editor.beginEdit(editUndoInfo);
Document doc = editor.getDocument();
try
// Create a position for the current caret that we can restore later.
Position p = doc.createPosition( editor.getCaretPosition() );
bUpdated = replaceAll( doc, '\r', '\n' ) > 0;
int pos = 0;
int length = doc.getLength();
int consecutiveNewLines = 0;
while ( pos < length )
char c = ((BasicDocument)doc).getTextBuffer().getChar( pos );
if ( c == '\n' )
++consecutiveNewLines;
else
consecutiveNewLines = 0;
if ( consecutiveNewLines > 1 )
// Swallow the newline at the current position.
doc.remove( pos, 1 );
length--;
bUpdated = true;
pos++;
// Now restore the caret to the original position.
editor.setCaretPosition( p.getOffset() );
catch ( BadLocationException ble )
ble.printStackTrace();
finally
editor.endEdit();
return bUpdated;
public void initialize()
final IdeAction doItAction = IdeAction.get(
Ide.createCmdID( CLEAN_CMD ),
"Clean White Lines",
new Integer( 'C' )
doItAction.addController( this );
EditorManager.getEditorManager().getContextMenu().addContextMenuListener(
new ContextMenuListener()
public boolean handleDefaultAction( Context context )
return false;
public void poppingDown( ContextMenu m ) {}
public void poppingUp( ContextMenu m )
m.add( m.createMenuItem( doItAction ) );
public void shutdown()
public float version()
return 0;
public float ideVersion()
return 0;
public boolean canShutdown()
return true;
public boolean handleEvent(IdeAction action, Context context)
int myCmdId = Ide.findCmdID( CLEAN_CMD ).intValue();
if ( action.getCommandId() == myCmdId )
doCleanWhiteLines( context );
return true;
return false;
public boolean update(IdeAction p0, Context p1)
return false;
} -
Oracle Workflow contract - Jamaica
June 7 2004
Our client is a major bank in Jamaica and they have a contract
requirement for a Oracle Workflow consultant with the following skills. This is a 6
months contract. It would be 3 weeks/month in Jamaica and 1 week back
home. All expenses including travel, accomodation (5 star) and meals
would be taken care of. There would also be a per diem and a bonus at
the end of contract.
Client open to considering Canada/US based candidates. This is a very urgent position. Client wants to start the contract ASAP.
Oracle Consultant Workflow
· A Technical Consultant with expert experience with Workflow
· Expert technical experience and strong functional knowledge
· Experience using Workflow Builder as a tool
· Experience with configuration, customization, and modification of
pre-configured workflows with Workflow Builder to suite business
applications
· Customization of workflow and optional set-ups such as enabling
email process
· Experience with configuration/escalation/exceptions in workflow
· Workflow Builder is accessed at the systems administration level so
consultant has to have experience with systems administration
(application system administration)
· A workflow guru would have performed this function for
at least 50% of the time (rest of the time he/she would have
done application system administration, technical
design/development
Skills:
Very strong technical user level of workflow
Very strong experience with Workflow Builder
Oracle 11i, SQL or SQL Plus
Workflow knowledge from HR or elements of HR Module
Please contact:
Rohini Mehtani
IT Resource Consultant
Bevertec
[email protected]
416-695-7525 ext: 229MRcoolpatti wrote:
Oracle Workflow builder raised below error for both Windows xp SP2 32bit and Windows 7 64 bit.
Workflow Builder 2.5
Run- time error '367'
Can't load (or register) custom control: 'wfnvg20.ocx'
Anyone have any idea?
Please see (Runtime Error 367 Cannot Register wfnvg20.ocx Message When Starting The Workflow Builder (Doc ID 123457.1)).
Thanks,
Hussein -
How can i change the particular node color in Jtree?
I have constructed the tree.i dont know how to set the color for the particular node then how can i change the particular node icon depends on some conditions like if we will give the input whether it is available in jtree that node icon only changed.Anyone please help me as soon as possible.
hi,
i saw that tutorial.from that book i dont get the particular node cell renderer.i got a cell renderer for tree only.i attached my code in this mail.pls see and help me if u will do
mport pack.Prop;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Font;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.UIManager;
import javax.swing.text.Position;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.MutableTreeNode;
import javax.swing.tree.TreeCellRenderer;
import javax.swing.tree.TreePath;
public class ReadProperty3 extends JFrame{
String str,key;
static JTree tree;
static Vector v;
StringTokenizer st;
static DefaultMutableTreeNode root;
DefaultMutableTreeNode t;
public Object[] o;
public static void main(String[] args) throws IOException {
ReadProperty3 r = new ReadProperty3();
Prop p=new Prop();
JFrame f=new JFrame();
p.show();
Object[] o=v.toArray();
int startRow = 0;
String prefix =p.s;
TreePath path = tree.getNextMatch(prefix, startRow, Position.Bias.Forward);
//if(prefix.equals(root.getChildAt(0).toString()))
if(prefix.equals("2000"))
System.out.println("Node 2000 found");
else if(prefix.equals("3000"))
System.out.println("Node 3000 found");
else if(prefix.equals("4000"))
System.out.println("Node 4000 found");
else
System.out.println("Node not found");
for(int i=0;i<v.size();i++)
//((DefaultTreeModel)tree.getModel()).reload();
DefaultTreeCellRenderer ren=(DefaultTreeCellRenderer)tree.getCellRenderer();
Icon openIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
Icon closedIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
Icon leafIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/read.gif");
if(o[0].equals(p.s))
ren.setBackgroundSelectionColor(Color.MAGENTA);
ren.setBackgroundNonSelectionColor(Color.YELLOW);
//ren.setTextSelectionColor(Color.YELLOW);
//ren.setTextNonSelectionColor(Color.BLUE);
ren.setClosedIcon(closedIcon);
ren.setFont(new Font("Impact",Font.ITALIC,14));
else if(o[1].equals(p.s))
ren.setLeafIcon(leafIcon);
ren.setFont(new Font("Impact",Font.ITALIC,10));
UIManager.put("Tree.leafIcon", leafIcon);
else if(o[2].equals(p.s))
ren.setOpenIcon(openIcon);
ren.setFont(new Font("Dialog",Font.BOLD,9));
public ReadProperty3(){
super("JTree With Properties");
try{
int c = 0;
while(c == 0){
c = 1;
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter file name which has properties extension :");
str = bf.readLine();
File f = new File(str + ".properties");
if(f.exists()){
Properties pro = new Properties();
FileInputStream in = new FileInputStream(f);
pro.load(in);
System.out.println("Key: " + pro.keySet());
System.out.print("Enter Key : ");
key = bf.readLine();
String p = pro.getProperty(key);
st = new StringTokenizer(p,"=,");
root=new DefaultMutableTreeNode(key);
v=new Vector();
while(st.hasMoreTokens())
String val=st.nextToken();
v.add(val);
o=v.toArray();
System.out.println(val);
t=new DefaultMutableTreeNode(val);
root.add(t);
tree=new JTree(root);
tree.setEditable(true);
JScrollPane jp=new JScrollPane(tree);
// tree.setCellRenderer(new CellRenderer());
Container content=getContentPane();
content.add(jp,BorderLayout.CENTER);
setSize(250,275);
setVisible(true);
addWindowListener(new ExitListener());
else{
c = 0;
System.out.println("File not found!");
catch(IOException e){
System.out.println(e.getMessage());
}
Maybe you are looking for
-
BIOS Sign-on message: MSI P965 Platinum A7238IMS V1.5B1 032207 (Date: 03/22/2007) Attachment name: A7238IMSv151.zip BIOS Sign-on message: MSI P965 Platinum A7238IMS V1.5B2 040407 (Date: 04/04/2007) Attachment name: A7238IMSv152.zip BIOS Sign-on messa
-
I Lost two HDD trying to install Windows 10 with BootCamp
I tried to install Windows 10 preview on a MBP Mid 2012 and after boot in Windows installer I choose the partition and the installer fails. I tried to boot again on OSX and didn't work anymore. Using Disk Utility it shows that the HDD is not recogniz
-
I am getting messages in safari about applesecutiryalert what is this about?
My browser is getting locked by something called applesecurityalert and it gives me a phone number to call.
-
What's best for the battery: recharge each day or only every second day
Hi. I can go two days on the battery of the Xperia Z1 Compact. How do I make sure the battery lasts the longest: By charging every day at about 50 percent battery, or by charging every second day at less than 10 percent battery, thus reducing the nu
-
I cannot open Canon 6D RAW files in CS 5, when will that be available.