Search:

Type: Posts; User: CGBubbles

Page 1 of 2 1 2

Search: Search took 0.12 seconds.

  1. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    what is the purpose of the sending if the variable isnt saved?

    So whjat you are saying is i should remove index2 instance from index

    go to mainpage then change one = new Index2() to.......what?
  2. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    "one = new Index2();" MainPage.java
    "Index2 index2 = new Index2();" Index.java

    while you wait while i convert all the buttons...

    --- Update ---

    "one = new Index2();" MainPage.java
    "Index2...
  3. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    i have in the past in this forum. page 2.

    It would require an external library from intellij. I have once again included all source files included the hidden gui portion to this link. This...
  4. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    so i started from scratch and passed variables. I got it down pat.



    public class MainForm {
    String varpass = "This is a string that has to be passed.";
    public String t1(){
    ...
  5. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    Index.java



    import javax.swing.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;

    public class Index {
    private JPanel panel;
  6. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    im just not getting this at all. Im staring at your response with confusion. Can you clearly outline what is suppose to be in Index and Index2 and post the corresponding code? Im very confused what...
  7. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    the setindex2 is placed in index. was this suppose to be placed in index2?

    and the index2.setter() is placed in index?

    Im really confused, because it feels like those 2 classes is just slinging...
  8. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    i get what you are saying but im having a hard time visualizing it.

    the index has a reference to Index.



    Index2 index2;
    public void setIndex2(Index2 index2){
    this.index2 = index2;...
  9. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    Im trying to send the value of lblamnt or tvar that is in index.java and pass that variable to index2 so i can perform calculations and such.
  10. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    the lblamnt is a JLabel and tvar is a String.

    3326

    The data type isnt in the error.
  11. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    its looking for a variable to be sent in the Index2().

    So is this the part where i send the value of lblamnt/tvar in index?

    How would i call that value in here?
  12. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    MainPage.java



    one = new Index2();


    "Index2(Index) in Index2 cannot be applied"
  13. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    thank you norm, that was my own careless mistake. I fixed those and put it in the class. It resolved the errors for index and index2.

    MainPage still persists.
  14. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    index.java


    public void setIndex2(Index2 index2){
    Index2 Index2;
    this.index2 = index2;
    }


    index2.java
  15. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    those are already in index and index2, i have to put this again in mainpage?
  16. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    can you provide an example on how this would be?

    i learn best when an example of code is displaced with a brief explanation.
  17. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    I have updated the code according to brynpttrsn.

    MainPage.java



    import javax.swing.*;
    import java.awt.*;

    public class MainPage extends JDialog {
  18. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    "If the latter, if a reference to the instance of Index is passed to the constructor of Index2 when Index2 is created, the code in Index2 could use tht reference to call a getter method in Index."
    ...
  19. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    by viewing the code i posted previously how can i resolve this problem.

    Recap. I need the value of lblamnt or tval to be carried to index2 so i can pull. I tried doing a getter function but it...
  20. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    Norm for 21,037 posts i fail to grasp how you think downloading this will be "clutter"

    It is one folder which i can presume you already made one. You simply put the contents of the rar in that...
  21. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    the package was included in the rar i put in the youtube video.

    https://mega.nz/#!YcJgzbRb!evT7Or8qH61Gk8Kf08pGYYj2hOmXK2zShjXzPp2zdEg

    all you need to do is compile in that directory with this...
  22. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    i read your post. When the user gets this they dont need special software. the device will be locked up so they wont have access to the pi itself. it will be in a case. I just ran it on my raspberry...
  23. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    i ran the finished product with the classes and ran it ojn the raspberry pi no problems. But ill post this in the meantime. im waiting fr a response. Note the extra code below that was being omitted...
  24. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    Please stand by, im figuring out how this works. apparently there is an option that auto generate the code.
  25. Replies
    92
    Views
    5,032

    Re: issue sending value to new pane

    hes using just java.exe. Not eclipse
Results 1 to 25 of 46
Page 1 of 2 1 2