Majestics 84 Posting Pro

I am using c# for my project, and i am working on a splash screen. Splash screen checking necessary files, problem is files are checked before showing splash screen. I want to do file checking after splashScreen interface become visible.

I am using two methods

//----------- Constructor ---------------------------------------
splashScreen()
{
initialization();
}

//-------------- Load Function ----------------------------------
splashScreen_Load(paramters)
{
checking files, database etc.
}
Majestics 84 Posting Pro

Oho A lot of code for such a small application. U better check online examples for Prime Number Finder.
Your problem lies in 2nd Loop it doesnt end because u dont have a condition check. So it moves towards infinite loop.

Majestics 84 Posting Pro

I think you have to make your o.s capable to display the chinese text, not the editor. Goto Reginol and language settings and install asian font. That will do it.

Majestics 84 Posting Pro

I am working on a project which require to add panel over another panel and repaint it. I can easily do in java. I am getting some problems in c#

I have a form name : Registeration.Form
I have a panel name : mainPanel

I want mainPanel to display Registeration.Form inside it. Kindly please guide towards right direction

Thank you.

Majestics 84 Posting Pro

echo your $name, also paste your url address here, seems like you are not passing correctly the name parameter.

Majestics 84 Posting Pro

router are used to connect two different networks. If router A has IP 192.168.1 and then B must be different lets suppose 192.168.0, u just need the ip address of the computer/device u want to ping.

Suppose ping 192.168.0.5

Majestics 84 Posting Pro

Sounds like home work. Try few lines and then ask for help. No body here is free to do your homework.

Majestics 84 Posting Pro

1) Check wether main string is null (if(str != null)) then
2) After that get the length of Str, if it is more then 3 then check if(str[3] == null) then
.........................................................................................

Majestics 84 Posting Pro

1) strrr object isnt intialized yet, u have initialze it first.
strrr = new String[size];
2) Now u can check your string, if its null dont split.

Majestics 84 Posting Pro

All you need to connect with mysql server or any othere database from remote software and take its backup, why you are involving java in this.
Watch this , it will clear ur idea.
http://sql.dzone.com/news/how-to-remote-mysql-database-a

Majestics 84 Posting Pro

I think you have hashes in hex form in file... The simple solution for this is to convert the message digest hash to hex form before comparing it with file hash. It will solve your problem.

2nd method would be reading the bytes and then converting into 8bit scheme. It is possible search hex to ascii encoding in java, u will get a lot examples.

Majestics 84 Posting Pro

i am working on a web project which upload file on server, i am using uploadify for this. I have used this with wamp where it worked like a charm but when i tried in the server side it failed.. any suggestions. I have done many tricks but none of them worked.

Majestics 84 Posting Pro

Please paste ur code... It seems u are calling file chooser in constructor rather then in actionPerformed Method. Still itsnt clear until you paste your code.

Majestics 84 Posting Pro

There is no way u can do this.... You can create ur own title bar by overiding the original title bar. All you have to do is setUndecorated(true). This will remove title bar and you can place your custom title bar.

JakeA commented: thanks... how can i create a titlebar with the same look and feel as windows? +0
Majestics 84 Posting Pro

I am new to php, i am creating a website which fetch data from mysql, if the data is more then 10 columns then i want to give a link

page 1 , 2 , 3 , 4 (Like google)

so user cant navigate through them....
How can i do it? Just some hints.

Majestics 84 Posting Pro

Seems Like a report, Use Jasper Report http://jasperforge.org/ , oracle reports or crystal reports.

Majestics 84 Posting Pro

Use theses Api's http://smslib.org/

Majestics 84 Posting Pro

I think you are confused in passing a class as a paramater,
You can pass class as a paramater...

Lets Take an example

//----------- Class a -----------------
class a
{
    private int i;
    a(int j)
    {
        i = j;
    }

    public void print()
    {
    System.out.println(i);
    }
}


//----------------- Class b
class b
    {
        b(a A)
        {
            A.print();
        }
    }


//---------------- Main Class which is controlling the other classes    
public class c
{
    public static void main(String args[])
        {
            b B1  = new b(new a(10));
            b B2  = new b(new a(10));
        }
}       

Here i have taken two class a and b, while c is only for central controlling the two. b class constructor takes a class parameter and print it in the constructor.

Majestics 84 Posting Pro

Doing this is a very easy job
Create a buffer byte[] b = new byte[1024];
while(in.read(b) != -1) //---------- This will read the file until the file end.
http://docs.oracle.com/javase/1.4.2/docs/api/java/io/FileInputStream.html
Check out the documentation

Majestics 84 Posting Pro
DavidKroukamp commented: docs solve them all :) +8
Majestics 84 Posting Pro

seems like a security issue, login from administrator account... Still you can access then scan from an antivirus because some times virus block your access.

Majestics 84 Posting Pro

Your function for populating the listbox must be written in action event of that left list box...

Majestics 84 Posting Pro

First of all you dont have Card Class, thats why it is giving cant find symbol error.
Second you cant call non-static objects from static functions because static has more life then non static thats why compiler stops you from doing this.

Majestics 84 Posting Pro

Thank you ... Java is a langauge i like the most but this time i think i dont have any choice i have to use .net framework ..................

Majestics 84 Posting Pro

Can some one provide me an example to call dll from java? I learning some thing about JNI , also linkage with c++ but doesnt found any cool stuff on c# and java... I want a free solution. Thanx in advance.

Majestics 84 Posting Pro
Majestics 84 Posting Pro

type netstat -a... :)
Hope this help

Majestics 84 Posting Pro

TCP AND UDP both require ports, difference is only reliability. Paste ur UDP server code here so i we check whats wrong with your app..

Majestics 84 Posting Pro
<html>

    <head>

        <!--Load the jquery lib -->

        <script type="text/javascript" src="jquery-1.7.2.js"></script>



        <!--Use jquery -->

        <script type="text/javascript">
        $var = 1;
        </script>

         <script type="text/javascript">

            $(document).ready(function(){

                $('#cont').click(function(){

                    $('<p />').text("hye").appendTo($('#cont'));

                });


                // $('p').live("click", function(){

                //  if($(this).text() == "Good...1")
                //  $(this).empty().appendTo($('#myDiv'));

                //}); 

            }); 

        </script>

        -->
    </head>



    <body>

    <!--  <div id="myDiv">  

            <p>Hello world!</p>

        </div>

        <a href="#" id="myLink">Change text</a>
        -->

        <form id="myform">
        <input type="text" style="width: 400px ; height : 100px ;" id = "txt">
        <input type="submit" name="button" id="btn">
        </form>
        <div id="cont">
        <p>Hello world!</p>
        </div>
    </body>

</html>

Here is my code . i want o click on button and create a paragraph with border in which text is written , any suggestions? Thanx in Advance , It will be like post box in face book.

Majestics 84 Posting Pro

Thank you cherril. After couple of hours work i finally got the problem issue.. and solved it. I was trying to post message but it wasnt posting.

Majestics 84 Posting Pro

i am making a compression tool for my assignement. Thats why i need to carefully read bytes from a file... Still there is a little success. I am thinking to shift to c++ because things are a bit easy there for such softwares.

Majestics 84 Posting Pro

I am facing some problems in a project regarding to byte fetching from a file and storing. Problem in java bytes is they are number, instead of char. In file i have seen a byte is like a char... Also how to make bytes unsigned , because signed bytes creates alot problem. Thanx in Advance.

Majestics 84 Posting Pro

Calling applet's is not possible in java Applet. You need to place the interface in the current applet and repaint the current interface....

Majestics 84 Posting Pro

Thats what is pointed in this link... You need a manifest file.
1) Create a text file name manifest
2) write -> Main Class: your mainclass name where your main function resides
3)goto cmd and write jar -cvfm manifest.txt yourjarname.jar yourclasses.class

I atleast earn a point for this... :)

Majestics 84 Posting Pro

http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html
this page explains every thing you require.

Majestics 84 Posting Pro

I have given you a hint to reach your goal. I cant solve all of your problem by pasting code. Its against the rule of this forum. In the above code i provided you a way to do some task over that strings which dont have p. So you simply need a method which counts string letter.

Majestics 84 Posting Pro
String s = "i am a p";
if(s.indexOf("p") == -1) //Index of method checks wether the character is present or not
    methodForCountingAllAlphabet(s); // count if p is not present
else
    continue(); // leave the string if p is present. This all the logic u require.
Majestics 84 Posting Pro

Your Problem : Scope of variable "i" is only to loop.
Try to declare a variable before for loop and use it inside for statement.

int i;
for(i=0;i<size;i++)
Majestics 84 Posting Pro

Do you have idea of creating manifest file?

Majestics 84 Posting Pro

public void itemStateChange (ActionEvent e)

I think u require to implement ItemEvent, and please post the errors

Majestics 84 Posting Pro

First you have setBound for your label...
Second , you need to repaint frame, you can see ur label if u resize by clicking resize button in title bar.

Majestics 84 Posting Pro
 Your problem:new ImageIcon [] = getClass().getResource(name[0])
 What are u doing here...
 Solution: new ImageIcon(getClass().getResource(name[0]))
 Image Icon takes a parameter and that the image location.
 Hope this Help..
Majestics 84 Posting Pro

Well let me give it a try... Thanx for your suggestion.

Majestics 84 Posting Pro

I am doing that already..... But all of these are on fixed size not ratio based. In netbeans i have seen things in jpanel inside a jframe auto expand to fit the size of the jframe container. But when i try to code things nothing worked in eclipse. I usually use border layout with flow layout but things inside flow layout doesnt expand automatically with the ratio of jframe changes...

Majestics 84 Posting Pro

How to provide auto size re-ajustment in java design i.e when vb.net form are expanded then it automatically expand the button and textfield appropiatly like nothing changed... while in java every thing messes up... Any Suggestions.

Majestics 84 Posting Pro

In java u have to dynamically alocate resources for array...
for Line 3 you need
a = new int[size of array];

Majestics 84 Posting Pro

We are not here to solve your assignements by reading this big requirement. Paste your code here and ask for specific help.

Majestics 84 Posting Pro
Create a table in mysql named menu, and menu item. Place your menu name in menu table and menu item name in menuitem table. At run time fetch the menu and related menuitem from tables and display them. U need PHP , MYSQL and CSS(JQuery if you want to make it animated).
Majestics 84 Posting Pro
Majestics 84 Posting Pro

Grid Layout set the layout in the form of Rows and columns , there are no options for setting the content size... Better move to Grid Bag Layout, it is the most flexiable one with size and placement options.