How to get senders address with bitcoinj (no duplicate)? I am using bitcoinj (java implementation). I have read many answers here but none of them answers my question. 
How to get senders address using bitcoinj?

I have transaction variable tx. I can get it's hash, I have used this as well: https://blockchain.info/tx/myTXhash and it showed me the transactions. The problem is not even that web is showing me the sender. 

BUT: if I use that generated .wallet file and open it with multibit (bitcoin wallet) I can see there, under transactions, from who were the money sent. That means there is a way how to get senders address, but HOW? 

EDIT: I was mistaken, multibit does not know from who the money came from, I was just confused because it showed me it was sent to the right address (but that was set up by me in args).

But is there any possibility to get the message somehow from client to know if it is him who sent the money?
For future reference:
In bitcoinJ (java version) the input/output addresses of transactions are located in TransactionInput and TransactionOutput objects.

For example: for Transaction tx:

List&lt;TransactionInput&gt; inputs = tx.getInputs();
List&lt;TransactionOutput&gt; outputs = tx.getOutputs();

for(TransactionOutput out : outputs){
    System.out.println(out.getAddressFromP2PKHScript(params));
    System.out.println(out.getAddressFromP2SH(params));
}

for(TransactionInput in : inputs){
    System.out.println(in.getFromAddress());
}


Keep in mind that some transactions might not have an input address.
Here is the github description of getFromAddress() method:


  Convenience method that returns the from address of this input by parsing the scriptSig. The concept of a "from address" is not well defined in Bitcoin and you should not assume that senders of a transaction can actually receive coins on the same address they used to sign (e.g. this is not true for shared wallets).