11 Posted Topics
I am trying to read a structure from a .dat file...the first integer to be read is the no of readings, then there is the data in following structure format struct Oven { int rec_no; int temp; int status; char string[10]; }; below is the method through which I read …
that is because tour random variable has values greater than your counter, try to limit your randomization to the counter
try making a "thread" which updates and re validates your GUI with small regular intervals
if you want to stack your panels try using "card layout" fro that..
on the server end simply store client ports in the array. on client side use a constructor to make datagram socket. this will keep the ports of each clients fixed ... if you don't do this each time the client port will change use a thread to receive messages on …
u are type-casting a string value into integer one. try "parsing" i.e [CODE] int accountno=Integer.parseInt(mAccthld.getValueAt(tAcctHld.getSelectedRow(),0)); [/CODE]
22 divide 16 = 10 modulo 23 22=160 modulo 23 :therefore 16 dividing one side goes on other side for multiplication 22=22 ...hence proved
you can save layers in the form of bufferedimage type vector. Retrive or repaint the needed layers when wanted.
I think this will solve your problem for making a list..... you dont have to make a list, use Graphics object for creating graphics Below is the code shown [CODE]import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import javax.swing.*; public class SampleLinePaint extends JPanel { JFrame frame; Graphics g2d; BufferedImage img; public …
The End.
efxee