Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

nabi bux

Ranch Hand
+ Follow
since Mar 14, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nabi bux

i am trying the follwoing code with dojo dropdowndatepicker


<div dojoType="dropdowndatepicker" displayFormat="dd-MM-yyyy" startDate="2000-01-01" inputName="f10" class="datepickerdiv" id="f10" name="na"></div>
<script language="javascript">
var nodeRef = document.getElementById("f10");
ojo.widget.createWidget(nodeRef);
Thanks for the reply can you write the code please
thanks
hi
every bodey im using dojo datepicker in html file
every thing is quite right but one problem occurs here
that when i click the dojodate picher date apears current date means but i want it must show the date 10 year back as per requirment
is is posible please tell me
thanks in advance
Thanks but i m using sever side PHP
I realy got good knowlege by you thanks for it
but there is problem i thing you post the code about the check box
ok first of all see what i want i have form having array of check box name edu i use post method to get value frm form when i check two check box i use for loop to get the value at second but the problem with your is that when i check all chekbox the last checkbox value transfered on the second page am i right

and secong this is that i want to get focus on the checkbox
let i java script code that check either check boxex are checked or not if no checkbox is cheked then show alert message please check the edu echeckbox and send fox to the check box at the top
I hope you understan what i need
thanks for the reply
Thanks too for that
I have got the problem but little confusion
can explaind it
var myval=document.forms[0];

what this line show
wheter the name of my form is form1
and you also use form1 as name of form

var myval=document.form1;
is there any difference of your statement and mine one please explain

i have other problem to got focus on the check boxes

shown below please help



<td align="right"><input type="checkbox" name="edu[]" value="matric"></td>
<td class="mytext">Matric</td>
</tr>
<tr>
<td align="right"><input type="checkbox" name="edu[]" value="inter"></td>
<td class="mytext">Inter</td>
</tr>
<tr>
<td align="right"><input type="checkbox" name="edu[]" value="bsc"></td>
<td class="mytext">Bsc</td>
thanks for reply but it not working in IE6
it does not check condition if i dont check on any radio button never shsow alert box which is in condition
i want to simple get focus on radion button this my problem
thanks for reply
hellow every body i have problem to geting focus on radio button
i have two radio button with the name tile
i have following code but not working
please help
and how to get focus on chechboxes
thanks in advance


code:

myval=dcument.form1;
for (var i=0;i<myval.title.length;i++)
{
if(myval.title[i].checked)
{
mytitle = 1;
}

}

if (mytitle == 0 )
{
alert("You must be select title field");
myval.title[0].focus();
return (false);
}
Hi
Please guide me how I detect data change in table
how i tablelistner to detect data change please give right Help
11 years ago
Hello,

I use glazed list with jTable and I want after editing cells in table update data in database, can anybody send me some tutorial?

Hi
Every One I working in Java swing there is Program in which i Defined two containg one is Jpanel for Button one JScroll pane for table
I have there table in data base i want when i click first button the first table appeare when i click secong button secong table apperar bey default when run my code first table appear niccely but when i second table it appeared but half the first table also remain the reaming how can i that first table removed and second table appeard at Jscroll Pane please Help
I try to use validate() repaint () fuction but they doed not work well please
/**
public class DataBase extends JFrame implements ActionListener {/*getContentPane().setLayout(
new BoxLayout( getContentPane(), BoxLayout.Y_AXIS );
. . . . .*/

JButton openButton, macButton, javaButton, motifButton, winButton;
AccessJDBCTest test; // User Definded
JLayeredPane desktop;
JScrollPane jsp;
JTabletable;
JPanel p;
JInternalFrame internalFrame;

public DataBase() {
super("Internal Frame Demo");
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
SwingUtilities.updateComponentTreeUI(this);
} catch (Exception ex1) {
System.err.println("Unsupported LookAndFeel: " );
}

test =new AccessJDBCTest();

try{
table =test.printTable();

} catch(Exception e){
System.out.println(e);
}

table.setRowHeight(20);
table.setCellSelectionEnabled(true);

// Add the table to a scrolling pane
jsp = new JScrollPane( table );



openButton = new JButton("Open");
macButton = new JButton("Mac");
javaButton = new JButton("Metal");
motifButton = new JButton("Motif");
winButton = new JButton("Windows");
setSize(500, 400);

p = new JPanel(new BorderLayout());
Box left=Box.createVerticalBox();
p.setBorder( new TitledBorder( new EtchedBorder(),"Function Buttton"));
Dimension size=new Dimension(100,20);
p.setBackground(Color.BLACK);

left.add(openButton);
left.add(macButton);
left.add(javaButton);
left.add(motifButton);
left.add(winButton);

openButton.setMaximumSize(winButton.getPreferredSize());
// b2.setMaximumSize(b3.getPreferredSize());
openButton.setMaximumSize(winButton.getPreferredSize());
macButton.setMaximumSize(winButton.getPreferredSize());// Setting he size of Button With respect to Larger Button
javaButton.setMaximumSize(winButton.getPreferredSize());
motifButton.setMaximumSize(winButton.getPreferredSize());


openButton.addActionListener( this );


p.add(left,BorderLayout.CENTER);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});


this.getContentPane().setBackground(Color.gray);
this.getContentPane().add(jsp,BorderLayout.CENTER);
this.getContentPane().add(p, BorderLayout.WEST);


}
public void actionPerformed( ActionEvent e )
{
if(e.getActionCommand()=="Open");

{
//JavaFileView jfv=new JavaFileView();
try{
table =test.printTableName();

} catch(Exception el){
System.out.println(el);
}
jsp.removeAll();
jsp=new JScrollPane(table);
jsp.revalidate();

this.getContentPane().add(jsp,BorderLayout.CENTER);
this.getContentPane()vlidate();


}
}

public static void main(String args[]) {
DataBase sif = new DataBase();
sif.setVisible(true);
}
}
11 years ago
Realy Thanks to rply I m Familiar with threading but realy i cant do it my self Please I have Read the Tutor suggested But please If Yu have program post it thanks
11 years ago
Hi
I Have project o school in which I use ms acees data base but the problem is that I want to open data base using dialog box rather then create driver for each data base file and then use is Java provid such facility as VB provided in vb we use Jet enginge get data base directley given full path of data using any technick rather creating drive In ODBC if there is any such posiblity please help let i have 100 data base file i create driver for each data base file and then use in code it is too tuff if any solution please help
Thanks for reply algrothim is that you have five function each function come and execut not full but then secon then third after five it is turn bck to frist and first fuction start from where i stoped then find out total wait time of each function and average wait time this is the logic thanks
or you can say round robin time scheduling algrothims
in other words
11 years ago
Thanks for reply algrothim is that you have five function each function come and execut not full but then secon then third after five it is turn bck to frist and first fuction start from where i stoped then find out total wait time of each function and average wait time this is the logic thanks
or you can say round robin time scheduling algrothims
in other words
11 years ago