Posts by Rodrigo Lima • 315 points
21 posts
-
2
votes2
answers125
viewsQ: Format string with durations
I have a time string with minutes, seconds and milliseconds. Example: 1:25.684 How can I format this String to a full hour format, filling with 0, to look like this: 00:01:25.684 String tempo =…
javaasked Rodrigo Lima 315 -
0
votes1
answer133
viewsQ: Synchronous webservice
I have a Restful Webservice developed in Java. I need a (service) method that is synchronous. But I can’t do that on the client side, it has to be done on the Webservice side, because this service…
-
1
votes1
answer1003
viewsQ: Java Printing - Docprintjob
I have this method to make impression: public void imprimir(String texto) { PrintService[] printService = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.AUTOSENSE, null); PrintService…
javaasked Rodrigo Lima 315 -
1
votes2
answers1341
viewsQ: Java coupon printing
How I do coupon printing in java, both in dot matrix printer, and both in tax-free thermal printer? And covering all manufacturers... has as? Programming changes depending on the manufacturer?…
javaasked Rodrigo Lima 315 -
0
votes0
answers115
viewsQ: dlls convention cdecl and stdcall
There is a difference in DLL calls with cdecl and stdcall conventions ? Or I program the same way for both conventions? I am using Java.
javaasked Rodrigo Lima 315 -
2
votes2
answers1031
viewsQ: Event click button
I add a few buttons like this: JButton bt; for(int i = 0; i <= 10; i++){ bt = new JButton("BT : " + i); bt.setPreferredSize(new Dimension(80, 80)); bt.addActionListener(new ActionListener() {…
-
2
votes1
answer595
viewsQ: Open Jfilechooser with filled "File Name" field
How can I open Jfilechooser with the field "File Name" filled? This field of the image below: How to set a name to open as default in this field?…
javaasked Rodrigo Lima 315 -
0
votes1
answer293
viewsQ: Report title in Ireport
In the reports I create in Ireport, the title(title) area only comes out on the first page and the header(header) area comes out on all pages. How can I get the title out on all pages and the page…
javaasked Rodrigo Lima 315 -
1
votes0
answers267
viewsQ: Jasperreport dependencies error
I use Netbeans. In my Maven I have this dependency for Jasperreport: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId>…
javaasked Rodrigo Lima 315 -
3
votes2
answers71
viewsQ: Socket- does not receive the message in full
I have these codes: I’m still doing tests... Client system: private void btComunicarActionPerformed(java.awt.event.ActionEvent evt) { List<PessoaMOD> pessoas = new…
javaasked Rodrigo Lima 315 -
3
votes1
answer202
viewsQ: Error sending JSON by Socket
When the JSON string is too large, there is loss of part of the string in the upload. I am sending like this: private void btComunicarActionPerformed(java.awt.event.ActionEvent evt) {…
javaasked Rodrigo Lima 315 -
3
votes3
answers539
viewsQ: Byte separation
I’m building a system to communicate via Socket: The client system sends the following information: 1 - int - message size 2 - bytes - the message The message consists of: 1 - int - code of the…
javaasked Rodrigo Lima 315 -
1
votes0
answers75
viewsQ: Error communication Socket
I have this piece of code: public class Consulta extends AsyncTask<Void, Void, Void> { @Override protected Void doInBackground(Void... params) { try { Socket cliente = new…
-
-1
votes1
answer54
viewsQ: Doubt in receiving data
I have a system on one computer that will send data to another system on another computer. The system that will receive the data will need to read this received data in real time and automatically.…
javaasked Rodrigo Lima 315 -
3
votes0
answers169
viewsQ: Printing houses in Bematech
I Googled but I couldn’t find any material that would help. How can I send a print from an Android app to a non-fiscal Bematech printer that is connected to a computer on the same network as Mobile?…
-
0
votes0
answers62
viewsQ: Oauth Authentication with Volley
How can I request a Webservice that uses Oauth as authentication, and I use the Volley API on Android ?
androidasked Rodrigo Lima 315 -
0
votes0
answers140
viewsQ: Icon and Text in Actionbar menu
How can I always display the text icon on a button in Actionbar? I did so: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">…
-
1
votes1
answer773
viewsA: Error with Coordinatorlayout
Problem solved. Before I was using these versions: compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.android.support:design:22.2.0' I started wearing these: compile…
-
0
votes1
answer773
viewsQ: Error with Coordinatorlayout
XML: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
-1
votes2
answers600
viewsA: Mpandroidchart
There’s really no way to create the scroll. I posted there in English Stackoverflow and the guy who created the Mpandroidchart told me to decrease the caption, but then I said I was with big letter…
-
1
votes2
answers600
viewsQ: Mpandroidchart
I am using Mpandroidchart to make charts. The problem is this, when I have many items in the caption, it expands leaving the chart small. You can create a scroll in the caption instead of expanding…