Posts by Gustavo Santos • 811 points
28 posts
-
1
votes1
answer194
viewsA: How to create a cardview with "slide" (similar to Nubank)?
I was able to do it this way: I used a ViewPager contentious a SpringDotsIndicator. I created separate layout files for the CardView, and inflated them into a Fragment. Add this implementation to…
-
0
votes1
answer194
viewsQ: How to create a cardview with "slide" (similar to Nubank)?
I’m trying to make a layout similar to cardview of the main screen of the nubank, however, I am not able to find reference to base myself. What I’m having trouble finding, is how to leave the…
-
2
votes1
answer755
viewsQ: How to run and display CMD log?
I have seen some examples of how to "execute" CMD commands, by the application, however, I am facing some difficulties. What I’m trying to do is give a cd in the oracle folder, and then run the…
-
2
votes1
answer233
viewsQ: Invoking a method by reflection
I took a look at that question You can pass methods as a parameter? and tried to invoke a method from one class, in another, passing as parameters the screen/class and the method name. The purpose…
-
0
votes1
answer61
viewsA: How to create a combo with 2 values?
One possibility, in my view, would be to create a matrix. In a very "simplistic" way, what you will do is in the first bracket [] store the "key", in your case "A". And in the second bracket [],…
javaanswered Gustavo Santos 811 -
1
votes1
answer606
viewsQ: How to change the focus between tabs on a Jtabbedpane?
I am trying to do the following routine. On my "main" screen, I own a JTabbedPane with two tabs, in which the focus is on the first tab. I need to open one JInernalFrame and, by closing it, make the…
-
1
votes2
answers378
viewsA: How to put simple apostrophes and concatenate with a string?
Well, you didn’t put much there, so if I understood correctly, all you have to do would be something like: "SELECT IDALUNO, NOME, DATANASCIMENTO FROM ALUNO WHERE DATANASCIMENTO BETWEEN '" +…
-
0
votes1
answer673
viewsQ: Dynamically define text to Jlabels according to text field validation
I tried to add one label for each required component of my screen that is empty (field 01 and field 02), so I created a list of labels with the corresponding amount of fields/components. However,…
-
1
votes1
answer236
viewsQ: Creating Row filter "dynamic"
I’m using RowFilter to create filters for certain columns in my table. My intention is to pass the components that I want to use as "bar" search by Paramento, creating them dynamically, and likewise…
-
5
votes1
answer677
viewsQ: Comparison between dates
I am wanting to validate the inclusion of dates in my system, referring to the lot of products, but I believe I am a little hasty in the way I am doing. For what I need, I thought of three…
-
0
votes1
answer1140
viewsQ: Trigger to upgrade stock
I’m trying to create a trigger to update my stock of products, when the status of my purchase is closed (CF = Closed Purchase). However, it is sending me an error, and I could not identify what is…
-
2
votes1
answer213
viewsQ: Calculations of skinfolds
Well, I don’t know if I can ask for help in calculating, more anyway, my question is this:: I need to do the calculation of skin folds, in this case the calculation of Pollok 3 folds, I researched…
-
3
votes2
answers579
viewsA: Permissions for an Oracle USER
Only use GRANT CONNECT, RESOURCE TO Aluno;
-
2
votes1
answer32
viewsA: About the tables and Sequences that "comes" with Oracle
What is happening is that at the time of installation and configuration of the database, you have not created a user/schema. You are "logged in" as SYSTEM, which is not the right one. You must…
oracleanswered Gustavo Santos 811 -
1
votes1
answer237
viewsQ: How to pass a local variable to an anonymous class?
I need to pass the control variable of a for, as a parameter for a method. The problem, is that I am trying to do this according to the JRadioButton which was selected, I am creating them according…
javaasked Gustavo Santos 811 -
1
votes1
answer745
viewsQ: Create a graph from values of a calculation
I am with the following doubt, how can I make my dynamic graph ? I have a graph, which is formed by two values, I want that according to the result any calculation, it changes/alters its…
-
2
votes1
answer1039
viewsQ: Separate address path from string
On my application JAVA, on a screen, I have fields referring to the address, I have two means of registering this address, I can pick up automatically searching for the zip code most of the…
-
0
votes1
answer733
viewsQ: How to use iReport with Oracle?
I’m having trouble adding the oracle driver in the iReport Designer, I tried to follow some tutorials, but I was not successful. So my question is, how do I add and perform the necessary settings…
-
3
votes1
answer165
viewsQ: Problems with Rowfilter output
I’m working with Documentlistener and Rowfilter, and I realized that my filter is taking the data that I type, and searching for correspondence in all the columns of my table. I would like to know,…
-
3
votes1
answer203
viewsQ: Implement a "result counter"
I have a search/query register screen and when I do the query, for example, from all countries, a label "arrow" how many countries found, (eg 19 countries found). However, if within these results I…
-
1
votes1
answer152
viewsQ: Firebird GEN_ID() function equivalence in ORACLE
Speak guys, I’m starting learning with BD Oracle, before I used Firebird. However I’m having a problem that I’m not able to solve. I can not include a new country by the system (java), if I insert…
-
4
votes1
answer669
viewsQ: Decorating a Jtextfield with an icone
My question is whether it is possible to "decorate" a field, like Jtextfield or Jformattedtextfield, with an icon. An example would be something like this: Following an example, I made the following…
-
7
votes1
answer223
viewsQ: how to center tabs of a Tabbedpane?
I have been doing some research, but I did not find it. I would like to know, how to center the tabs of a Tabbedpane. They always start from the left, but since they are only two tabs, I wanted them…
-
2
votes1
answer243
viewsQ: How do I define column size?
I have a query screen, and I would like to define the size of the columns, because some columns take up more space than necessary. I thought that if I made a comparison with the title of the column,…
-
0
votes1
answer142
viewsQ: How to use a selection setBackground in custom Renderer?
I’m trying to use a render Cell, so when it shows monetary data, it does the formatting. However, when I apply the render in a particular column, the focus in that column does not have the…
-
3
votes1
answer1517
viewsA: Create Jframe with label?
package teste02; import javax.swing.JFrame; import static javax.swing.JFrame.EXIT_ON_CLOSE; import javax.swing.JLabel; import javax.swing.JPanel; public class…
-
4
votes1
answer1310
viewsQ: How to align the column title of a Jtable?
I have a table (Abstract table model) and would like to center column titles. I tried the following: DefaultTableCellRenderer centralizado = new DefaultTableCellRenderer();…
-
6
votes1
answer481
viewsQ: How to "limit" a Jcombobox according to the selected item?
I have a JComboBox, and I limit the size of it, with the following code: jcb.setPreferredSize(new Dimension(100, 21)); However, I would like to know if there is a way that after I choose an option,…