Marvin Legend

Ranch Hand
+ Follow
since Oct 18, 2013
Merit badge: grant badges
For More
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
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marvin Legend

I created a code that works perfectly and brings results via Json with my database and fills my ListView with STRINGS, but I would like the database bring the column "image" that I created, the relative image address (Example: http : //localhost/dashboard/Android/Imagem/car.jpeg) and listview carry this inside through the address recorded in the database, the images of the addresses are stored in the "image" column in my database, already I tried a number of ways, but I could not, I'll post the code that fills my listview only with strings, because this code is working correctly:


7 years ago

Whats up guys!

I am new to android and I need to know what is the best way to connect to an external database that is already on a server, and I have a few more questions:

1- The Sqlite is a native feature of Android, so it is the best choice for internal connections correct? And for external connections as well?

2- Is it true that for embebed connections is better to use the Sqlite and external connections is better to use PHP + SQL?

3- What are the best ways of external connections you know for Android?

4 What are the best ways of internal connections you know for Android?

Thank you very much! Let's spread knowledge!
Peace for all!
7 years ago
How can I customize the images of the components in the Nimbus Look and Feel? I would like to create the images in photoshop and place
on some Nimbus Look and Feel components, these are the components that I want to change:

ScrollBar Button
Knob ScrollBar
Thumb ScrollBar
ScrollBar Track

Thanks!
7 years ago
Batch file (. BAT) problems with some folders on.

Hello guys,

I created an application in Java and put the JRE folder within the application, because some users do not have Java installed on your machine and the way I did, my application runs. JAR with the JRE that is contained in my application ., with this I'm not having problems, but I created a BAT file that contains the following command:

start "" jre8 \ bin \ javaw-jar app.jar

So I run my program in java through the file. BAT calling JRE that is inside the folder and then this JRE runs the mine. JAR and works great anywhere in windows, worked well on a USB key with this command is within. BAT (start "" jre8 \ bin \ javaw-jar app.jar).

But I'm having trouble running this. BAT in certain folders, eg Program Files and Program Files (x86), I need this code to be able to find any directory, regardless of whether the directory has spaces in the name, symbols, numbers or anything else, because maybe people will put the application folder to another location or rename the folder, and if this happens the program will stop working? Too bad agree? And especially do not give problems to run inside the Program Files and Program Files (x86) because the application runs everywhere except in these two folders.

Thank you very much!
9 years ago
My application triggers the virus: (
I created an application and used the InstallCreator to generate an installer for my application. The InstalCreator that generates a. EXE program and this triggers the antivirus every time the user tries to download the installation set-up, why it happens? What should I do for this not to happen? The InstallCreator is very useful for me, it allows you to configure all the software for the desktop shortcuts and more, and I need my program to be installed because before installing the user has to agree to the terms of the license, is created an entry in the control panel to uninstall, it's very cool is not it? but it is giving me problems. If you know any other way to solve, I'll be very grateful.
9 years ago
I created a Java application and I generated an executable. JAR, which works perfectly, after that I used my Launch4j that transforms .JAR on .EXE and then I used InstallCreator to create an installer for my application .EXE to have a more professional look, but my clients are having difficulty downloading the application generated by InstallCreator because the antivirus does not allow the user to download the .EXE software that is on the InstallCreator format (in a Setup format), and in some cases (very rare) when downloading the Setup allows generated by InstallCreator after installed, the antivirus is triggered when the application starts and gives a signal to virus threat and the application is blocked, or to run. installed EXE is necessary "run as administrator ". and this makes it very difficult for the user, anyone know any way to get one. JAR turn into. EXE and create an installer that does not generate any problems with antivirus and permissions? And once installed does not give problem to run?
9 years ago

Paul Clapham wrote:Your main problem is that none of that code will compile, so running it is pointless.

In the first version, you have several local variables declared, and they all have the same name. This isn't allowed, and when you compile the code the compiler will tell you so. Don't ignore what the compiler tells you.

In the second version your line which says "New Server (5000)" isn't valid because "New" followed by "Server" isn't grammatical. The other lines attempt to create a new object of type "server", but the first line doesn't. Remember that Java is a case-sensitive language so "New" and "new" are different, and likewise "Server" and "server" are different.

Anyway, I recommend getting your code to compile before you proceed. If you have trouble understanding the error messages from the compiler, then certainly ask us about those messages here.



Bro !
I edit my quastion ! Look again ! I'm Brazilian, and i translate my question and the information was wrong ! the objects server are differentes ! The translator remove de numbers ! Right = server1, server2, server 3 .... Ok ?
9 years ago
Whats up guys !

I have a class in Java which is a server, I put this server class, the argument port, for example if I call this class I would like: new Server (5000); 5000 is the argument of this server class, so I created a new frame with a button class, and action of this button I call this class server 5 times, but with different arguments and looked like this:




But the problem is that when I click the button, the only server that initiates the first is on port 5000, I've done the debug here and noticed that only the first statement is executed, the other 4 are not, why is that?

I've tried to do so:



Still does not work, I did the debug in both cases and only the server port 5000 is started, someone help?
9 years ago


Good morning my friends ,

The server was working normally but now I'm seeing these errors

Server Side:

java.lang.ClassNotFoundException : PacoteTradugo.Mensageiro
at java.net.URLClassLoader $ 1.run ( URLClassLoader.java : 372 )
at java.net.URLClassLoader $ 1.run ( URLClassLoader.java : 361 )
at java.security.AccessController.doPrivileged ( Native Method )
at java.net.URLClassLoader.findClass ( URLClassLoader.java : 360 )
at java.lang.ClassLoader.loadClass ( ClassLoader.java : 424 )
at sun.misc.Launcher $ AppClassLoader.loadClass ( Launcher.java : 308 )
at java.lang.ClassLoader.loadClass ( ClassLoader.java : 357 )
at java.lang.Class.forName0 ( Native Method )
at Java.Lang.Class.forName ( Class.java : 340 )
at java.io.ObjectInputStream.resolveClass ( ObjectInputStream.java : 626)
at java.io.ObjectInputStream.readNonProxyDesc ( ObjectInputStream.java : 1613 )
at java.io.ObjectInputStream.readClassDesc ( ObjectInputStream.java : 1518 )
at java.io.ObjectInputStream.readOrdinaryObject ( ObjectInputStream.java : 1774 )
at java.io.ObjectInputStream.readObject0 ( ObjectInputStream.java : 1351 )
at java.io.ObjectInputStream.readObject ( ObjectInputStream.java : 371 )
PacoteTradu.Server_1 at $ ListenerSocket.run ( Server_1.java : 78)
at java.lang.Thread.run ( Thread.java : 745 )





Client Side :

May 29, 2014 4:55:43 AM PacoteTradugo.Sala $ ListenerSocket run
SEVERE : null
java.net.SocketException : Socket closed
at java.net.SocketInputStream.socketRead0 ( Native Method )
at java.net.SocketInputStream.read ( SocketInputStream.java : 150 )
at java.net.SocketInputStream.read ( SocketInputStream.java : 121)
at java.net.SocketInputStream.read ( SocketInputStream.java : 203)
at java.io.ObjectInputStream $ PeekInputStream.peek ( ObjectInputStream.java : 2296 )
at java.io.ObjectInputStream $ BlockDataInputStream.peek ( ObjectInputStream.java : 2589 )
at java.io.ObjectInputStream $ BlockDataInputStream.peekByte ( ObjectInputStream.java : 2599 )
at java.io.ObjectInputStream.readObject0 ( ObjectInputStream.java : 1319 )
at java.io.ObjectInputStream.readObject ( ObjectInputStream.java : 371 )
PacoteTradugo.Sala at $ ListenerSocket.run ( Sala.java : 444 )
at java.lang.Thread.run ( Thread.java : 745 )

Thank you !
9 years ago
I'm using this methodology for Java connection between client and server, I copied it from the internet, and helped me a lot, but the server allows the user to stay connected while it is sending messages, but if you stay an average time of 5 minutes without send anything it is disconnected, I need to increase that time to about 30 minutes or disable this disconnection for inactivity, anything you know to help me a lot.

Stay in Peace
thank you very much

Settings:
Netbeans 8.0
Windows Seven 64 Bits Ultimante


The following code:








9 years ago
After generating a. JAR with Netbeans Java, when I play I see the colors of the components, the design and formatting is lost and the form gets a very basic formatting, for example, if I set a button with the color [0, 40.255] and build the. JAR after this, when I run the. JAR this button turns gray, and it happens with all the layout of the form, which is the solution to this guys?


settings:
Netbeans 8.0
Windows 7


Thank you very much.
Stay in peace guys.
9 years ago
Good morning guys,

I'm trying to create a JAR in NetBeans, but I get messages.:

C: \ Users \ Administrator \ Desktop \ Project \ nbproject \ build-impl.xml: 993: The Following error occurred while executing this line:

C: \ Users \ Administrator \ Desktop \ Project \ nbproject \ build-impl.xml: 837: copylibs does not support the "excludeFromCopy" attribute

NetBeans does not generate the. JAR because disses errors.


My specs

Version of OS = Windows 7 64 Bit

Java version = 1.7.0_55

Netbeans version = 7.0.1

Thanks!
9 years ago
Hello guys,


I need to put a Web Page in my JFrame application , I got a lot codes on the internet and could implement without problems , but the problem is that this code has an ugly page as hell, with colored all wrong and with a very poor quality , one of code I used was this :





If you test , you'll see that the page is displayed in the JFrame is horrible , can someone help me to get a good look as Chrome , Internet Explorer , Mozilla etc ?

Thank you guys .
9 years ago
I have a database that has stored records containing apostrophe, for example: McDonald 's, Bill 's, Anne's etc. ..

I haven't had a lot of trouble to insert these records with apostrophe, but I'm having trouble finds them solely, generally when I want to find a unique record do this way:

SELECT CODE FROM ' TBL_TEST ' WHERE NOME_TESTE = ' Ana '
He returns an exact result = 35


But if the word sought have apostrophe the previous example doesn't solve my problem, so I changed my code to this:

SELECT CODE FROM ' TBL_TEST ' WHERE NOME_TEST LIKE '% Paulo ' s% '

Observe that now I use the LIKE clause to search for words with apostrophes or without (my database has many words with apostrofo) because the = does not find them but this search with the LIKE clause returns to me not only the name of Paulo's but all containing Paul's and the result is this:

result = Paulo ' s
Paul's Sheen
Paul ' s Gates
Paul's Jobs


So I would like to find unique records and with apostrophe, because the examples you note that the two things are not happening together, I would like in the second example to find only Paul's and wouldn't want to find Paul's Sheen, Paul's Gates, Paul's Jobs.

Stay in peace guys.
I created a GUI and a table in embedded derby through the Net Beans , and I enter a lot of data in it , it will work like a dictionary . because the user will make researches on it , in my house I can do researches and inserts this table without problems , but only on my computer ! If I would like to create it on another computer , the GUI works , but the connection to the database and access the data that I created are not made because the user will want to see the words in the dictionary that I inserted in my house . How do I run my application on another computer to be automatic database connection and the user can access the database has already been created in my house with the words I enter ? How do I create a portable database with automatic connection to the derby ? This way the user will only need to install the software with the embedded database and make researches usually with the imported database from my home , without concern to connect and make no import .

Thanks a lot guys .


Add :

I'm correcting my post, I expressed myself poorly expensive, I need to make a backup of the database and place the database within the project, the project will not be web, my application will have no external access, it will be local and offline, the bank will be in the client's home, but with my data previously entered, the client will run the graphical window and open the database that I put in the design and research data, how do I insert the bank in the project?
10 years ago