I have placed thread is alive in a loop , so when the thread finish its work so i will start another work.... but this makes program heavier. is there any other method
while(thread1 is alive)
wait
getvalue from thread1 and start thread2
I have placed thread is alive in a loop , so when the thread finish its work so i will start another work.... but this makes program heavier. is there any other method
while(thread1 is alive)
wait
getvalue from thread1 and start thread2
no processing, just the connection string at startup,
I have a seperate thread for it.
//class conn
jdbc:oracle:thin:@192.168.1.10:database:user:password
//main class
while(conn class is alive)
{
wait
}
fetch connection from conn class for executing query.
Amazing, never thought its that easy. Thanx
Is there any class for information providing box when i bring mouse over the object in java.
I mean when i bring mouse over the combo box it display information about that combo box
I cant load picture, seems some error in picture loading area.....
No solution yet... app is still very slow.. I wonder is there any solution or not, tns ping takes 30msec
i havnt used jlist yet, but you can grab the idea from this website
http://download.oracle.com/javase/tutorial/uiswing/components/list.html
Setting font size isnt ur problem... Its your layout problem.
1521-1540, yes indeed driver, but i m not understanding your point. Do u want to say that driver is slow to create connection at startup? I have to change driver?
Do u think, changing connection string make the connection faster? Have u tried it before.... I thought making multiple port opening can make app faster?
Actually, its not oracle application, its completly created in java, i have connected it with connection string
jdbc:oracle:thin@192.168.1.10
There is no oracle client installed on any system over lan, if u suggest it will make it fast, then i will use it.
Read this http://www.roseindia.net/java/beginners/arrayexamples/SelectionSort.shtml
Grab Points from here and start working...
tnsping only working on database server, not working from any other computer over lan
1) Use Code Tags [code] Code here [/code]
2) for(int i = 1; i < n; i++)
{
SortNow(int[] w, int n);
}
// dont u know how to pass paramter to function
3) Have u imported java.util.ArrayList; for Array List
4) We all make blunder's when we try new things, it isnt stupidity, that what call learning , but before starting try to read books so you can fully use your brain cells at time of coding.
How i m supposed to do this? :)
1) Use code Tags
2)SortNow(); // No paramater
3)private int SortNow(int[] a,int i, int n) // Three Paramter
You are calling a function which dont exist...
Pass paramters or make empty paramter function.
On same machine, when i use localhost rather then IP , it connect with in 2 sec. Even on same machine when i use its IP it connect faster, but over lan its very slower
when i double click application, it takes some time to connect with oracle server but that time is almost 15 sec, i want to make it 4 or 3 sec, i have also opened a port , tried both TCP AND UDp but nothing worked.... so is there any way to make connection with oracle database server faster?
Email send, check it happy geek...
How can any one use my yahoo ID , its 100% confirm its my id, i have tried to add through control panel but it didnt worked... now please change and send me a reponce over my yahoo ID.
I have connected java with oracle over lan, in connection string i have provided the IP address, now the startup is very slow, how can i make it fast, i have already asked the same question in java forum but no responce, so i thought oracle expertise can answer this question.
I want to change my email address from greatmajestics@hotmail.com to greatmajestics@yahoo.com , i want to recieve alerts on yahoo ID.. But when i tried to change it give me already present warning... It is requested to admin or mod to please correct this problem.
http://www.java-tips.org/java-se-tips/javax.swing/how-to-create-a-simple-browser-in-swing-3.html
1) Above is a simple web browser coding
2) Paste your code.
Yes , seems to like a bug, I have checked it.... But this wont effect your application, its a application dependent bug.
//Wrong
for (arrayPosition = 0; arrayPosition == cipherText.length(); arrayPosition++, letterPosition++)
//Right
for (arrayPosition = 0; arrayPosition < cipherText.length(); arrayPosition++, letterPosition++)
You have used == instead of less or greater then symbol on line 29
There are alot error. If you want to make them run then try to solve each error, eclipse is one of the best Java visual editor tool, simply bring cursor over the error and it will provide you help that how to resolve that error. U can post more problem after that , finally every thing will start working. :)
Well even i do a separate thread... until the connection not established software wont work, so i want to make connection real fast..
I have connected java with oracle and providing the facility of accessing data on the lan... I have also open a port, but still my java app over lan start very slowly after that it speed up, but at startup its very slow Y? Thank you for any suggestion
He will probably use a language, when i started learning i tried many languages, because if you cant implement and see reponse you dont motivate yourself well.
Langauge also matter, because jumping from language to another is very difficult.
If you want portability use java, java is good but it dont give platform dependent api, also we can use some bridges but slow in that case... C++ is best in case of platform depedency..
Here the rules are pretty strict , please mark thread solved so others can get advantage of this. :)
//when button clicks code then
lbl2.setText(""); // Set Jlabel Title
Please post the errors
Sorry, but u can give me warning , not a negative point......
http://download.oracle.com/javase/tutorial/uiswing/layout/visual.html
These are all the layouts which java have... Check which one fulfill ur requirement.
Why a negative point, i wasted my 20 min to help this guy so he will appreciate my work, you @Norm1 posted a negative reputation on my post... Why? There are no rules regards to spoon feeding in rule section.... I m not against the rule.. So please take it back.
Found solution..... and it worked great.
table.changeSelection(i,j,true,false);
u must give me a reputation point on finding such a solution for this forum :) Joking, and thanx for helping.
YES I DID IT
for(int i=0;i<table.getRowCount();i++)
for(int j=0;j<table.getColumnCount();j++)
if(table.getValueAt(i,j).toString().toLowerCase().equals(searchfield.getText().toLowerCase()))
{
table.getSelectionModel().setSelectionInterval(i,i);
table.getColumnModel().getSelectionModel().setSelectionInterval(j,j);
}
BUT IT ONLY SELECT A SINGLE CELL, NOT ALL MATCHING CELL
I HAVE DONE IT.... BUT ONLY A SINGLE CELL, I WANT TO SELECT ALL CELL WHICH HAS DATA...
table.getSelectionModel().setSelectionInterval(i,i); table.getColumnModel().getSelectionModel().setSelectionInterval(j,j);
THANX , EZZARAL , but how to select a cell from coding.. what u posted only related to highlighting.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.DecimalFormat;
/**
The Test class is an applet that calulates
ticket prices for a theatre.
*/
public class Test extends JApplet
{
private JPanel mPanel; // To hold a text field
private JPanel aPanel; // To hold a text field
private JPanel bPanel; // To hold a text field
private JPanel tPanel; // To hold a text field
private JPanel buttonPanel; // To hold a button
private JTextField member; // members
private JTextField area; // seating area
private JTextField ticketnum; // tickets
private JTextField total; // total cost
/**
init method
*/
public void init()
{
// Build the panels.
buildmPanel();
buildaPanel();
buildbPanel();
buildtPanel();
buildButtonPanel();
// Create a layout manager.
setLayout(new GridLayout(5, 1));
// Add the panels to the content pane.
add(mPanel);
add(aPanel);
add(bPanel);
add(tPanel);
add(buttonPanel);
}
/**
The buildtPanel method creates a panel with a text
field in which the user can enter whether they are a member
or not.
*/
private void buildmPanel()
{
// Create the panel.
mPanel = new JPanel();
// Create a label to display a message.
JLabel message1 =
new JLabel("Are You a Member (Y/N)?: ");
// Create a text field for the Member temp.
member = new JTextField(10);
// Create a layout manager for the panel.
mPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
// Add the label and text field to the panel.
mPanel.add(message1);
mPanel.add(member);
}
private void buildaPanel()
{
// Create the panel.
aPanel = new JPanel();
// Create a label to display a message.
JLabel message2 =
new …
I am writing a prg which take a value from user and check weather its present in table or not....
table.getValueAt(i,j).toString().toLowerCase() == searchfield.getText().toLowerCase();
Well if yes then make that cell red...
What to write to make cell red?
Create Method Display in property Class
Property dont have constructor to take parameter
Create Method getId in property Class
Please post pictures..... I already told u , no body guess what the problem is.
Insert I=new Insert(acc,amount,nm,fine,// Pass this as well);
I.setVisible(true);
this.setVisible(false);
In insert class define a jframe and do this
frame = this; //Reference Transfer , this "this" refer to original calling frame..
and when u close that insert class frame then through "frame" reference u can open back parent frame.
this "this" isnt syntax only to show u how to get work done.
If you have used single class then both objects can easily see each other, if u are using two different classes then pass them to constructor as reference
classBFrame = new classBFrame(FrameA);
Also paste your code here.............