- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
Greetings: That`s my question, until know i`ve been doing it by a batch file that i execute then read, is there a way to do it without the batch?, what i need is to list all of the Word (.doc) files of a given directory Thanks in advance | |
Re: Greetings: There are two ways for manipulating pdf files, the hard way is to develop a library to read an write pdf files (easier said than done) you can find everything you`ll need for writing one [url=http://partners.adobe.com/public/developer/pdf/index_reference.html]here[/url], the easier way is to use PDFKit.net, from [url=www.tallcomponents.com]tallcomponents[/url], in there you can … | |
Re: Grretings: Just remove that part from the string: [code] s.Remove(0,3); [/code] the remove method takes two parameter, the index where you want to start removing and length you wish to remove | |
Re: Greeting: That a usual problem with random number, the best way to minimize this to use a seed for the random based on the actual time, something like this: [code] DateTime x=DateTime.Now(); float mins=x.Minute; float secs=x.Second; float hour=x.Hour; Random r=new Random((secs*mins)+hour); [/code] This way unless you run your program at … | |
Re: Greetings: It can be done via JNI, i once did that in 2 steps, from java to c++ and then from c++ to c#, in java`s webpage there`s a tutorial on doing this, from java to c++ and viceversa. For writing c# code in Java code, im pretty sure that`s … | |
Re: Greetings: You could use a process for this: [code] Process p=new Process(); p.StartInfo.FileName=file; p.StartInfo.WindowStyle=ProcessWindowStyle.Hidden; p.Start();p.WaitForExit();p.Close(); [/code] Just make sure youre using System.Diagnostics | |
Re: Greetings: You could try with GridBagLayout, it allows you to control a little more the appereance by using weights for the spaces that the components use, something like this: [code] GridBagLayout gridbag = new GridBagLayout(); this.getContentPane().setLayout(gridbag); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; //to add components you just asign … | |
Greetings: I was wondering, how can i run a .class from a different location? For example, supose that i have c:\A.class, in MS-DOS supose that im at d:\whatever\whatever\, if i run java c:\A, i get: Exception int hread "main" java.lang.No ClassDefFoundError c:\A I`ve also tried using: [quote] java -cp . … | |
Re: Greetings: You should really pay attention at server_crash points, anyway, this should do the trick: [CODE]import java.awt.*; import java.awt.event.*; import java.applet.*; public class Test extends Applet implements ActionListener{ private Button b1,b2; private Label l1,l2; public void init() { GridBagLayout g=new GridBagLayout();setLayout(g); GridBagConstraints c=new GridBagConstraints(); c.fill=GridBagConstraints.HORIZONTAL; l1=new Label();l2=new Label(); b1=new Button("Jhon");b1.addActionListener(this); … | |
Re: Greetings: Check [URL=http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html]this[/URL] link, almost at the bottom there is class named DrawingPanel, they extend JPanel to behave as canvas, hope that helps :cheesy: | |
Greetings: I`m starting in Java and i`m having problems with compatibility between versions, in school they have an older version(I believe its 1.4.0 but i`m not completely sure) than the one i have at home(1.5.0_04), so almost every time i try to open a applet/application at school i get errors, … | |
Re: Greetings: I don`t quite understand your question, but from reading your other post (I think you should have posted this in the other post), i think that using an array for the bets wouldn`t be the best answer, why dont you create a class that "hosts" the bets with four … | |
Greetings: I developed a simple application for text encryption, i managed to register the new extension, my question is how to open this files from outside the program?(when you double click on them), i know that you need to pass some parameters to the main method but im not sure … | |
Re: Greetings: Actually i spent a lot of time trying to do this with the default updateCommand, but, with no satisfactory results, my suggestion is to use sql commands with an OleDbCommand, what you need is to check if there was an update and if so enter a sql instruction: if(myDataSet.HasChanges()){ … |
The End.